Commit 18f97011 authored by Pekka Pessi's avatar Pekka Pessi

su/test_memmem.c: fix ordering problem

parent ceae503f
......@@ -94,7 +94,9 @@ static int test_notfound(void)
TEST_P(memmem(haystack + 2, 3, needle, 3), haystack + 2);
TEST_P(memmem(haystack + 2, 2, needle, 3), NULL);
TEST_P(memmem(a = "a\0bc", 4, "a\0bc", 4), a);
a = "a\0bc";
TEST_P(memmem(a, 4, "a\0bc", 4), a);
TEST_P(memmem(a, 4, "\0bc", 3), a + 1);
END();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment