Given how core this code is, I figure it should have it's own testsuite.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 9 Mar 2004 11:15:44 +0000 (11:15 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 9 Mar 2004 11:15:44 +0000 (11:15 +0000)
commita893a324f37e6a171719db8ffffe66df31c2dbaa
tree3207c425030de291159b97ccaa8414a828133d0b
parent44d304f84c4ba5a832d5e3848ae0d04d5438ac15
Given how core this code is, I figure it should have it's own testsuite.

Big thanks to tpot and mbp for showing how easy it can be to write a simple
unit test, and for providing the STF.

This also changes the strstr_m() code to use strstr_w() (avoiding
duplication) and fixes it so that it passes the STF.

(We now always restart before doing the unicode run, until sombody can
show me why the testsuite is wrong).

Andrew Bartlett
source/Makefile.in
source/lib/util_str.c
source/stf/strings.py
source/torture/t_strstr.c [new file with mode: 0644]