X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-c-strcasecmp.c;h=fa18efaa6784b7b5d5f88566411ba216fd11943a;hb=fb7fde6f658ac18b7ab7ca61dca9a290cc8c3348;hp=5c153c9afd4719dcd4a7697f20ca4e32a0457495;hpb=701e426bb62ca10e65c98e5f90a3a7e5d6ec5be3;p=gnulib.git diff --git a/tests/test-c-strcasecmp.c b/tests/test-c-strcasecmp.c index 5c153c9af..fa18efaa6 100644 --- a/tests/test-c-strcasecmp.c +++ b/tests/test-c-strcasecmp.c @@ -17,17 +17,25 @@ /* Written by Bruno Haible , 2007. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "c-strcase.h" #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 (int argc, char *argv[])