dprintf-posix: Check against memory leak fixed on 2009-12-15.
[gnulib.git] / tests / test-glob.c
index cd1ea4d..750d9d8 100644 (file)
 
 #include <stdio.h>
 #include <stdlib.h>
-
-#define ASSERT(expr)                                                   \
-  do                                                                   \
-    {                                                                  \
-      if (!(expr))                                                     \
-       {                                                               \
-         fprintf (stderr, "%s:%d: assertion failed\n",                 \
-                  __FILE__, __LINE__);                                 \
-         fflush (stderr);                                              \
-         abort ();                                                     \
-       }                                                               \
-    }                                                                  \
+#include <string.h>
+
+#define ASSERT(expr)                                                    \
+  do                                                                    \
+    {                                                                   \
+      if (!(expr))                                                      \
+        {                                                               \
+          fprintf (stderr, "%s:%d: assertion failed\n",                 \
+                   __FILE__, __LINE__);                                 \
+          fflush (stderr);                                              \
+          abort ();                                                     \
+        }                                                               \
+    }                                                                   \
   while (0)
 
 #define GL_NO_SUCH_FILE "/gnulib-magic-does-not-exist"