X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mbscasestr2.c;h=d9d0a0ee938b8e491c0ffb7ff6eb5122a85d3102;hb=11dbc24bbfd94e0e8d36754fe17bb1fdeb58fe5e;hp=fc7dca6e84a28df70ba89a5da1a61e07c2d77ec9;hpb=a3372b6ce9df3ac81e6ddd605107461194f3b246;p=gnulib.git diff --git a/tests/test-mbscasestr2.c b/tests/test-mbscasestr2.c index fc7dca6e8..d9d0a0ee9 100644 --- a/tests/test-mbscasestr2.c +++ b/tests/test-mbscasestr2.c @@ -17,16 +17,24 @@ /* Written by Bruno Haible , 2007. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #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 ()