summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gl/modules/randread-tests1
-rw-r--r--gl/tests/test-rand-isaac.c15
2 files changed, 2 insertions, 14 deletions
diff --git a/gl/modules/randread-tests b/gl/modules/randread-tests
index b608ac67a..af24c9041 100644
--- a/gl/modules/randread-tests
+++ b/gl/modules/randread-tests
@@ -1,5 +1,6 @@
Files:
tests/test-rand-isaac.c
+tests/macros.h
Depends-on:
diff --git a/gl/tests/test-rand-isaac.c b/gl/tests/test-rand-isaac.c
index 83cd6bc36..9dd7e2f1a 100644
--- a/gl/tests/test-rand-isaac.c
+++ b/gl/tests/test-rand-isaac.c
@@ -23,22 +23,9 @@
#include <fcntl.h>
#include <stdint.h>
-#include <stdlib.h>
-#include <stdio.h>
#include <string.h>
-/* FIXME: once/if in gnulib, use #include "macros.h" in place of this */
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
/* This expected output was generated by running the programs in
<http://burtleburtle.net/bob/rand/isaacafa.html>, as last modified