X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mbscasestr1.c;h=843716f1323833aa3ddd4cd73cdf878dbb4654bb;hb=e52fa80b73cf84d7e5472aeb43ead4e25dbd5989;hp=87f2605c0f763649264b530391c1979c555defb2;hpb=a3372b6ce9df3ac81e6ddd605107461194f3b246;p=gnulib.git diff --git a/tests/test-mbscasestr1.c b/tests/test-mbscasestr1.c index 87f2605c0..843716f13 100644 --- a/tests/test-mbscasestr1.c +++ b/tests/test-mbscasestr1.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 ()