X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-c-strcasestr.c;h=427653b54a1f2f6fa4306239f7b3e2c48b34d86f;hb=70f2c04b76c463b54adb0c1db6de2b2c5c40661c;hp=a457e5d8c429ef6fcce2d27b2176394f2c4b26ee;hpb=b90fb71212755584d66a0db84bb69cf67b1052e3;p=gnulib.git diff --git a/tests/test-c-strcasestr.c b/tests/test-c-strcasestr.c index a457e5d8c..427653b54 100644 --- a/tests/test-c-strcasestr.c +++ b/tests/test-c-strcasestr.c @@ -23,10 +23,20 @@ #include "c-strcasestr.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) int main ()