X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mbschr.c;h=3caada69d7f39d2c8f1133d645540693f2fbe5b6;hb=e52fa80b73cf84d7e5472aeb43ead4e25dbd5989;hp=33f4612738fff0c259e3220d65e92aa1959c9dd6;hpb=0204694e7c105253d8e8d7e5d560fda9e8680272;p=gnulib.git diff --git a/tests/test-mbschr.c b/tests/test-mbschr.c index 33f461273..3caada69d 100644 --- a/tests/test-mbschr.c +++ b/tests/test-mbschr.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 ()