X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fbufmode.c;h=044d872b36cc49927c64f67691ed5761910c2c85;hb=70f2c04b76c463b54adb0c1db6de2b2c5c40661c;hp=cbdf29d7fe433e9f515784ecfb98235666a33554;hpb=e7e8418d964ccdc0f1af799ee847d5b93a32b2e4;p=gnulib.git diff --git a/tests/test-fbufmode.c b/tests/test-fbufmode.c index cbdf29d7f..044d872b3 100644 --- a/tests/test-fbufmode.c +++ b/tests/test-fbufmode.c @@ -21,9 +21,19 @@ #include "fbufmode.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-fbufmode.tmp"