X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-c-strncasecmp.c;h=de6848364d87f02049eadc0564595416f77613f1;hb=fb7fde6f658ac18b7ab7ca61dca9a290cc8c3348;hp=4f1214ce5363ddc4b269bbf82e5227b893945c8d;hpb=5cde64897a0df3db3101d53004b96102edd37480;p=gnulib.git diff --git a/tests/test-c-strncasecmp.c b/tests/test-c-strncasecmp.c index 4f1214ce5..de6848364 100644 --- a/tests/test-c-strncasecmp.c +++ b/tests/test-c-strncasecmp.c @@ -17,16 +17,25 @@ /* Written by Bruno Haible , 2007. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include -#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[])