projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-getopt: enhance test
[gnulib.git]
/
tests
/
test-roundl.c
diff --git
a/tests/test-roundl.c
b/tests/test-roundl.c
index
51cd1cd
..
c4fcf0c
100644
(file)
--- a/
tests/test-roundl.c
+++ b/
tests/test-roundl.c
@@
-28,17
+28,18
@@
#include "fpucw.h"
#include "isnanl-nolibm.h"
#include "fpucw.h"
#include "isnanl-nolibm.h"
+#include "nan.h"
#define ASSERT(expr) \
#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
+ do
\
+ {
\
+ if (!(expr))
\
+ {
\
fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
+ fflush (stderr);
\
+ abort ();
\
+ }
\
+ }
\
while (0)
/* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
while (0)
/* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
@@
-97,7
+98,7
@@
main ()
ASSERT (roundl (1.0 / 0.0L) == 1.0 / 0.0L);
ASSERT (roundl (-1.0 / 0.0L) == -1.0 / 0.0L);
/* NaNs. */
ASSERT (roundl (1.0 / 0.0L) == 1.0 / 0.0L);
ASSERT (roundl (-1.0 / 0.0L) == -1.0 / 0.0L);
/* NaNs. */
- ASSERT (isnanl (roundl (
0.0L / 0.0L
)));
+ ASSERT (isnanl (roundl (
NaNl ()
)));
return 0;
}
return 0;
}