X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mbsstr3.c;h=9f65520cd679caaf8ff885b8919dae45859ad46b;hb=70f2c04b76c463b54adb0c1db6de2b2c5c40661c;hp=5461196b92c2e64b43ab568aca6e8894d736e09b;hpb=736119c28bcec850f35474aa183633a347b228eb;p=gnulib.git diff --git a/tests/test-mbsstr3.c b/tests/test-mbsstr3.c index 5461196b9..9f65520cd 100644 --- a/tests/test-mbsstr3.c +++ b/tests/test-mbsstr3.c @@ -24,9 +24,19 @@ #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 ()