X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vasnprintf-posix2.c;h=65f3c6cfab5fc216f2c2bf78641c93770d2d147a;hb=c0fea97ccf33a4e6b6f9116216b1634663f29474;hp=eaa95b21141dad798e72b76dfc42d090c81affda;hpb=9f88c0b0e0cfa8a9c25f1db4f58b837c7b891575;p=gnulib.git diff --git a/tests/test-vasnprintf-posix2.c b/tests/test-vasnprintf-posix2.c index eaa95b211..65f3c6cfa 100644 --- a/tests/test-vasnprintf-posix2.c +++ b/tests/test-vasnprintf-posix2.c @@ -17,17 +17,25 @@ /* Written by Bruno Haible , 2007. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "vasnprintf.h" #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 (int argc, char *argv[])