projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor common macros used in tests.
[gnulib.git]
/
tests
/
test-isnan.c
diff --git
a/tests/test-isnan.c
b/tests/test-isnan.c
index
74bb9d9
..
a5787c2
100644
(file)
--- a/
tests/test-isnan.c
+++ b/
tests/test-isnan.c
@@
-28,22
+28,9
@@
#include <float.h>
#include <limits.h>
#include <float.h>
#include <limits.h>
-#include <stdio.h>
-#include <stdlib.h>
#include "nan.h"
#include "nan.h"
-
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0f.
So we use -zero instead. */
/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0f.
So we use -zero instead. */