Move to here from test-fprintf-posix.out.
[gnulib.git] / tests / test-c-strcasestr.c
index 726c18b..427653b 100644 (file)
 
 #include "c-strcasestr.h"
 
+#include <stdio.h>
 #include <stdlib.h>
-
-#define ASSERT(expr) if (!(expr)) abort ();
+#include <string.h>
+
+#define ASSERT(expr) \
+  do                                                                        \
+    {                                                                       \
+      if (!(expr))                                                          \
+        {                                                                   \
+          fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+          abort ();                                                         \
+        }                                                                   \
+    }                                                                       \
+  while (0)
 
 int
 main ()