X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-printf-frexp.c;h=6940ceb965adcdd689c616c9caba2d8f6eebc57c;hb=cf8538614458dcf303ea9bb2f03aacdb5ebe34ca;hp=b821e4613d374309025682af5971ea05b23029b9;hpb=eee009073c7e98c56ad5d8b8f9a7e583e7460012;p=gnulib.git diff --git a/tests/test-printf-frexp.c b/tests/test-printf-frexp.c index b821e4613..6940ceb96 100644 --- a/tests/test-printf-frexp.c +++ b/tests/test-printf-frexp.c @@ -22,9 +22,19 @@ #include "printf-frexp.h" #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 double my_ldexp (double x, int d)