X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vprintf-posix.c;h=871adffda1ec25f07ae79b21051468cc524ef132;hb=1b9bd2b9f83a84ede12622d6a040383b6bded37d;hp=6f7f141d10857ec36e1bc417defe0a2596179207;hpb=ed91d0417a5d9abb08f7e3de0a5656e8974dbc76;p=gnulib.git diff --git a/tests/test-vprintf-posix.c b/tests/test-vprintf-posix.c index 6f7f141d1..871adffda 100644 --- a/tests/test-vprintf-posix.c +++ b/tests/test-vprintf-posix.c @@ -17,19 +17,27 @@ /* Written by Bruno Haible , 2007. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #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, ...)