X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fmem%2Ftest%2Frun.c;fp=ccan%2Fmem%2Ftest%2Frun.c;h=0000000000000000000000000000000000000000;hb=2ab3ac5b30c1cc58c0846e05c5943c03e7111ad8;hp=3efd1d81b7facb9ec30ecd33eb510e427bb36668;hpb=992931f06cf25d24fe74b4c617753aef2de70426;p=ccan diff --git a/ccan/mem/test/run.c b/ccan/mem/test/run.c deleted file mode 100644 index 3efd1d81..00000000 --- a/ccan/mem/test/run.c +++ /dev/null @@ -1,20 +0,0 @@ -#include -#include -#include - -int main(void) -{ - char haystack1[] = "abcd\0efgh"; - char needle1[] = "ab"; - char needle2[] = "d\0e"; - - /* This is how many tests you plan to run */ - plan_tests(3); - - ok1(memmem(haystack1, sizeof(haystack1), needle1, 2) == haystack1); - ok1(memmem(haystack1, sizeof(haystack1), needle1, 3) == NULL); - ok1(memmem(haystack1, sizeof(haystack1), needle2, 3) == (haystack1 + 3)); - - /* This exits depending on whether all tests passed */ - return exit_status(); -}