X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-strcasestr.c;h=6ecdb5287b08dec8380a06ca210fde1b403bf137;hb=e52fa80b73cf84d7e5472aeb43ead4e25dbd5989;hp=5ea0f4e792109e481a5ecc6b46e9ba856c107980;hpb=9e50ddc83c2aa9cccbe954d561eb2380e4d3bfe7;p=gnulib.git diff --git a/tests/test-strcasestr.c b/tests/test-strcasestr.c index 5ea0f4e79..6ecdb5287 100644 --- a/tests/test-strcasestr.c +++ b/tests/test-strcasestr.c @@ -17,15 +17,23 @@ /* Written by Bruno Haible , 2007. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include +#include #include -#define ASSERT(expr) if (!(expr)) abort (); +#define ASSERT(expr) \ + do \ + { \ + if (!(expr)) \ + { \ + fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + abort (); \ + } \ + } \ + while (0) int main ()