X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vprintf-posix.c;h=57b6740161f27bbb7bc4544f5b1c20bc757b6eb4;hb=75d146361fe980e1e1bbb9639edc6fbed5345e82;hp=6f7f141d10857ec36e1bc417defe0a2596179207;hpb=ed91d0417a5d9abb08f7e3de0a5656e8974dbc76;p=gnulib.git diff --git a/tests/test-vprintf-posix.c b/tests/test-vprintf-posix.c index 6f7f141d1..57b674016 100644 --- a/tests/test-vprintf-posix.c +++ b/tests/test-vprintf-posix.c @@ -25,11 +25,21 @@ #include #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) static int my_printf (const char *format, ...)