X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-mbsstr2.c;h=d45690f412a42988ae9748f2850ca54b1685e254;hb=9faed5de047d34fddbd4cddbfee73d1fbcea5e32;hp=6aebf56af325a88534655a4bd3dc2f0af6d81a68;hpb=736119c28bcec850f35474aa183633a347b228eb;p=gnulib.git diff --git a/tests/test-mbsstr2.c b/tests/test-mbsstr2.c index 6aebf56af..d45690f41 100644 --- a/tests/test-mbsstr2.c +++ b/tests/test-mbsstr2.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 ()