X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-round1.c;h=935eb10473d15aa32888fd28a0b951ecd576940f;hb=f2bbde92e487b8446ff201767c430306450220be;hp=704e1da640f30979834cadcf56ed248c56305a3e;hpb=06945b7c073c0872ec2049c0e0b94f789bf8d77e;p=gnulib.git diff --git a/tests/test-round1.c b/tests/test-round1.c index 704e1da64..935eb1047 100644 --- a/tests/test-round1.c +++ b/tests/test-round1.c @@ -25,7 +25,8 @@ #include #include -#include "isnand.h" +#include "isnand-nolibm.h" +#include "nan.h" #define ASSERT(expr) \ do \ @@ -33,6 +34,7 @@ if (!(expr)) \ { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + fflush (stderr); \ abort (); \ } \ } \ @@ -74,7 +76,7 @@ main () ASSERT (round (1.0 / 0.0) == 1.0 / 0.0); ASSERT (round (-1.0 / 0.0) == -1.0 / 0.0); /* NaNs. */ - ASSERT (isnand (round (NAN))); + ASSERT (isnand (round (NaNd ()))); return 0; }