X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-vasprintf.c;h=1a3f366a3b805a10fb7dd864a3bc065b33f5d0f9;hb=fb7fde6f658ac18b7ab7ca61dca9a290cc8c3348;hp=3de72d3f2d6b4669a58683cca6e69813e40725a5;hpb=5eab08f9f65b91d196c31afde467fdab85f9b348;p=gnulib.git diff --git a/tests/test-vasprintf.c b/tests/test-vasprintf.c index 3de72d3f2..1a3f366a3 100644 --- a/tests/test-vasprintf.c +++ b/tests/test-vasprintf.c @@ -17,17 +17,24 @@ /* Written by Bruno Haible , 2007. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include -#include "vasprintf.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) static int my_asprintf (char **result, const char *format, ...)