X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-printf-posix.c;h=b2541d90517d928bb07112cabef30eb6b464df78;hb=c0fea97ccf33a4e6b6f9116216b1634663f29474;hp=d8e728a27b27844d2aa6c1e05d5f05af563b2719;hpb=7dfbd2504fc25649b478872b2f98705ec76a332e;p=gnulib.git diff --git a/tests/test-printf-posix.c b/tests/test-printf-posix.c index d8e728a27..b2541d905 100644 --- a/tests/test-printf-posix.c +++ b/tests/test-printf-posix.c @@ -17,18 +17,26 @@ /* Written by Bruno Haible , 2007. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#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) #include "test-printf-posix.h"