X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-frexp.c;h=9ce989b06db40540d786b5636ca73c4477abe3e7;hb=8e74296348d2d5197a301ebf8c8b1e4342088ad3;hp=7d2a2758ee09ffa5efd2cd76a2fc13b65e22bd1c;hpb=5d7e7dd737c62fe09ce0d083810a502209dc5e80;p=gnulib.git diff --git a/tests/test-frexp.c b/tests/test-frexp.c index 7d2a2758e..9ce989b06 100644 --- a/tests/test-frexp.c +++ b/tests/test-frexp.c @@ -22,11 +22,21 @@ #include #include +#include #include #include "isnan.h" -#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