X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fwriting.c;h=a16213046373790b0cdf636d419641f14154cba2;hb=a7ebfd1caaa58b6a7bc0b1d1510b0255604e804a;hp=0f97df5ccf59616ce2d8aff0fc0e0191f1bf2532;hpb=17fecfc4d6363d6d4127a97b42f0acbbcbd60a44;p=gnulib.git diff --git a/tests/test-fwriting.c b/tests/test-fwriting.c index 0f97df5cc..a16213046 100644 --- a/tests/test-fwriting.c +++ b/tests/test-fwriting.c @@ -21,9 +21,19 @@ #include "fwriting.h" +#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) #define TESTFILE "t-fwriting.tmp"