On HP-UX 11: > _Isnanf (first referenced in test-roundf1.o) (code) > *** Error exit code 1
Since this occurs in the other twin modules as well, I fixed it: 2007-10-21 Bruno Haible <[EMAIL PROTECTED]> * tests/test-floorf1.c: Include isnanf.h. (main): Use isnanf() instead of isnan(). * tests/test-ceilf1.c: Include isnanf.h. (main): Use isnanf() instead of isnan(). * tests/test-truncf1.c: Include isnanf.h. (main): Use isnanf() instead of isnan(). * tests/test-roundf1.c: Include isnanf.h. (main): Use isnanf() instead of isnan(). *** tests/test-ceilf1.c.orig 2007-10-21 20:06:01.000000000 +0200 --- tests/test-ceilf1.c 2007-10-21 20:05:41.000000000 +0200 *************** *** 23,28 **** --- 23,30 ---- #include <stdio.h> #include <stdlib.h> + #include "isnanf.h" + #define ASSERT(expr) \ do \ { \ *************** *** 77,83 **** 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 ()))); return 0; } --- 79,85 ---- ASSERT (ceilf (1.0f / 0.0f) == 1.0f / 0.0f); ASSERT (ceilf (-1.0f / 0.0f) == -1.0f / 0.0f); /* NaNs. */ ! ASSERT (isnanf (ceilf (NaN ()))); return 0; } *** tests/test-floorf1.c.orig 2007-10-21 20:06:01.000000000 +0200 --- tests/test-floorf1.c 2007-10-21 20:05:41.000000000 +0200 *************** *** 23,28 **** --- 23,30 ---- #include <stdio.h> #include <stdlib.h> + #include "isnanf.h" + #define ASSERT(expr) \ do \ { \ *************** *** 77,83 **** 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 ()))); return 0; } --- 79,85 ---- ASSERT (floorf (1.0f / 0.0f) == 1.0f / 0.0f); ASSERT (floorf (-1.0f / 0.0f) == -1.0f / 0.0f); /* NaNs. */ ! ASSERT (isnanf (floorf (NaN ()))); return 0; } *** tests/test-roundf1.c.orig 2007-10-21 20:06:01.000000000 +0200 --- tests/test-roundf1.c 2007-10-21 20:05:41.000000000 +0200 *************** *** 25,30 **** --- 25,32 ---- #include <stdio.h> #include <stdlib.h> + #include "isnanf.h" + #define ASSERT(expr) \ do \ { \ *************** *** 84,90 **** 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 ()))); return 0; } --- 86,92 ---- ASSERT (roundf (1.0 / 0.0f) == 1.0 / 0.0f); ASSERT (roundf (-1.0 / 0.0f) == -1.0 / 0.0f); /* NaNs. */ ! ASSERT (isnanf (roundf (NaN ()))); return 0; } *** tests/test-truncf1.c.orig 2007-10-21 20:06:01.000000000 +0200 --- tests/test-truncf1.c 2007-10-21 20:05:41.000000000 +0200 *************** *** 23,28 **** --- 23,30 ---- #include <stdio.h> #include <stdlib.h> + #include "isnanf.h" + #define ASSERT(expr) \ do \ { \ *************** *** 76,82 **** 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 ()))); return 0; } --- 78,84 ---- ASSERT (truncf (1.0f / 0.0f) == 1.0f / 0.0f); ASSERT (truncf (-1.0f / 0.0f) == -1.0f / 0.0f); /* NaNs. */ ! ASSERT (isnanf (truncf (NaN ()))); return 0; }