diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-21 20:06:53 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-10-21 20:06:53 +0200 |
commit | 386f7ca44a81b4230f867b19f8cc8296869548d9 (patch) | |
tree | b8068ceb769d6b36b1bbcd6c881d991c1d415488 /tests | |
parent | cf216c10ee2f1a47323ef0d53973c2a4bb3e7085 (diff) | |
download | gnulib-386f7ca44a81b4230f867b19f8cc8296869548d9.tar.gz |
Use isnanf() instead of isnan(). Avoids a link error on HP-UX 11.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-ceilf1.c | 4 | ||||
-rw-r--r-- | tests/test-floorf1.c | 4 | ||||
-rw-r--r-- | tests/test-roundf1.c | 4 | ||||
-rw-r--r-- | tests/test-truncf1.c | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/tests/test-ceilf1.c b/tests/test-ceilf1.c index 485b16f4d7..36a116358f 100644 --- a/tests/test-ceilf1.c +++ b/tests/test-ceilf1.c @@ -23,6 +23,8 @@ #include <stdio.h> #include <stdlib.h> +#include "isnanf.h" + #define ASSERT(expr) \ do \ { \ @@ -77,7 +79,7 @@ main () ASSERT (ceilf (1.0f / 0.0f) == 1.0f / 0.0f); ASSERT (ceilf (-1.0f / 0.0f) == -1.0f / 0.0f); /* NaNs. */ - ASSERT (isnan (ceilf (NaN ()))); + ASSERT (isnanf (ceilf (NaN ()))); return 0; } diff --git a/tests/test-floorf1.c b/tests/test-floorf1.c index c41152039f..afd006b085 100644 --- a/tests/test-floorf1.c +++ b/tests/test-floorf1.c @@ -23,6 +23,8 @@ #include <stdio.h> #include <stdlib.h> +#include "isnanf.h" + #define ASSERT(expr) \ do \ { \ @@ -77,7 +79,7 @@ main () ASSERT (floorf (1.0f / 0.0f) == 1.0f / 0.0f); ASSERT (floorf (-1.0f / 0.0f) == -1.0f / 0.0f); /* NaNs. */ - ASSERT (isnan (floorf (NaN ()))); + ASSERT (isnanf (floorf (NaN ()))); return 0; } diff --git a/tests/test-roundf1.c b/tests/test-roundf1.c index 6311e3a898..67d5c7fe90 100644 --- a/tests/test-roundf1.c +++ b/tests/test-roundf1.c @@ -25,6 +25,8 @@ #include <stdio.h> #include <stdlib.h> +#include "isnanf.h" + #define ASSERT(expr) \ do \ { \ @@ -84,7 +86,7 @@ main () ASSERT (roundf (1.0 / 0.0f) == 1.0 / 0.0f); ASSERT (roundf (-1.0 / 0.0f) == -1.0 / 0.0f); /* NaNs. */ - ASSERT (isnan (roundf (NaN ()))); + ASSERT (isnanf (roundf (NaN ()))); return 0; } diff --git a/tests/test-truncf1.c b/tests/test-truncf1.c index 0fefc7fa2a..8915f9faeb 100644 --- a/tests/test-truncf1.c +++ b/tests/test-truncf1.c @@ -23,6 +23,8 @@ #include <stdio.h> #include <stdlib.h> +#include "isnanf.h" + #define ASSERT(expr) \ do \ { \ @@ -76,7 +78,7 @@ main () ASSERT (truncf (1.0f / 0.0f) == 1.0f / 0.0f); ASSERT (truncf (-1.0f / 0.0f) == -1.0f / 0.0f); /* NaNs. */ - ASSERT (isnan (truncf (NaN ()))); + ASSERT (isnanf (truncf (NaN ()))); return 0; } |