X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-isnan.c;h=c23b377a22b4e2e6aec89468edafb6011e284247;hb=373c44dc1d48bf58b7b46ce04bc87d437d20eb5e;hp=0897a55b328e22d7ab36147c708d2de5e5dd48bf;hpb=6136fd62a3342532f17ccfd5f24db97764978448;p=gnulib.git diff --git a/tests/test-isnan.c b/tests/test-isnan.c index 0897a55b3..c23b377a2 100644 --- a/tests/test-isnan.c +++ b/tests/test-isnan.c @@ -22,9 +22,19 @@ #include "isnan.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) /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */ #ifdef __DECC