Refactor common macros used in tests.
[gnulib.git] / tests / test-fseek.c
index 4447a9b..00ded3e 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (fseek, int, (FILE *, long, int));
 
-#include <stdlib.h>
-
-#define ASSERT(expr) \
-  do                                                                         \
-    {                                                                        \
-      if (!(expr))                                                           \
-        {                                                                    \
-          fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
-          fflush (stderr);                                                   \
-          abort ();                                                          \
-        }                                                                    \
-    }                                                                        \
-  while (0)
+#include "macros.h"
 
 #ifndef FUNC_UNGETC_BROKEN
 # define FUNC_UNGETC_BROKEN 0