X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-c-strncasecmp.c;h=de6848364d87f02049eadc0564595416f77613f1;hb=fb7fde6f658ac18b7ab7ca61dca9a290cc8c3348;hp=24b00a86e44f47998f32fd3f2da3e3bd6c92b381;hpb=701e426bb62ca10e65c98e5f90a3a7e5d6ec5be3;p=gnulib.git diff --git a/tests/test-c-strncasecmp.c b/tests/test-c-strncasecmp.c index 24b00a86e..de6848364 100644 --- a/tests/test-c-strncasecmp.c +++ b/tests/test-c-strncasecmp.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[])