Refactor common macros used in tests.
[pspp] / tests / test-ftell.c
index 786a448c1189db48023b57235ecfecce5824e7b8..0f35da44fc6035d95c196a6d01d2b3bdc3a9bb05 100644 (file)
 #include <config.h>
 
 #include <stdio.h>
-#include <stdlib.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (ftell, long, (FILE *));
 
 #include "binary-io.h"
+#include "macros.h"
 
 /* None of the files accessed by this test are large, so disable the
    fseek link warning if we are not using the gnulib fseek module.  */
 # undef fseek
 #endif
 
-#define ASSERT(expr) \
-  do                                                                        \
-    {                                                                       \
-      if (!(expr))                                                          \
-        {                                                                   \
-          fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
-          fflush (stderr);                                                  \
-          abort ();                                                         \
-        }                                                                   \
-    }                                                                       \
-  while (0)
-
 #ifndef FUNC_UNGETC_BROKEN
 # define FUNC_UNGETC_BROKEN 0
 #endif