X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-memchr2.c;h=a992fb5c08ab3f5c7fd47db9179c022bfbf88f6f;hb=d0f97a44fdeb55f2197ed8f191de8a91e43ad827;hp=ef0a71330318f1d5fbd971de446c5a2f0aa71338;hpb=2d4d7d9d00fe33b6f5291e00a30b6c1016775b74;p=gnulib.git diff --git a/tests/test-memchr2.c b/tests/test-memchr2.c index ef0a71330..a992fb5c0 100644 --- a/tests/test-memchr2.c +++ b/tests/test-memchr2.c @@ -19,23 +19,11 @@ #include "memchr2.h" -#include #include #include #include "zerosize-ptr.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" /* Calculating void * + int is not portable, so this wrapper converts to char * to make the tests easier to write. */