diff options
author | Bastien Nocera <hadess@hadess.net> | 2008-08-28 12:53:59 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2008-08-28 12:53:59 +0000 |
commit | f84518e35b81f39c075df3563d86e494af836778 (patch) | |
tree | 42fbb25ddd66f1f89d6b6a466c6890f187c49342 /tests | |
parent | 3feaad58e6b152cf1368788a92a3ac9f22b0274a (diff) | |
download | glib-f84518e35b81f39c075df3563d86e494af836778.tar.gz |
Bug 548612 – g_strstr_len() should use memmem when available
2008-08-28 Bastien Nocera <hadess@hadess.net>
Bug 548612 – g_strstr_len() should use memmem when available
* glib/tests/strfuncs.c (test_strstr):
* tests/string-test.c (main): Patch by Paolo Borelli
<pborelli@katamail.com> to move the tests to the right place,
and add more tests
* glib/gstrfuncs.c (g_strstr_len): Fix problem with memmem ignoring
nul-terminators in strings, and using the haystack_len instead
svn path=/trunk/; revision=7409
Diffstat (limited to 'tests')
-rw-r--r-- | tests/string-test.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/string-test.c b/tests/string-test.c index d8aa728d3..7da4128f1 100644 --- a/tests/string-test.c +++ b/tests/string-test.c @@ -307,11 +307,6 @@ main (int argc, g_assert (strcmp (tmp_string, "b a") == 0); g_free (tmp_string); - tmp_string = g_strdup (GLIB_TEST_STRING); - g_assert (g_strstr_len (tmp_string, 4, "rado") == NULL); - g_assert (g_strstr_len (tmp_string, -1, "rado") == tmp_string + 5); - g_free (tmp_string); - return 0; } |