X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-binary-io.c;fp=tests%2Ftest-binary-io.c;h=677db703ead5bfc7c11a048b4682868f1ddfae03;hb=75d146361fe980e1e1bbb9639edc6fbed5345e82;hp=718a66e54f9f1610ca3d341a3d65665dcf447763;hpb=17fecfc4d6363d6d4127a97b42f0acbbcbd60a44;p=gnulib.git diff --git a/tests/test-binary-io.c b/tests/test-binary-io.c index 718a66e54..677db703e 100644 --- a/tests/test-binary-io.c +++ b/tests/test-binary-io.c @@ -30,7 +30,16 @@ #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 ()