diff options
author | das <das@FreeBSD.org> | 2012-01-14 08:11:40 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2012-01-14 08:11:40 +0000 |
commit | 2b88eaa8016ec877d8de071c90161e02625c3678 (patch) | |
tree | f4f0b15b3c820c53840c64c4912a74341d4232ec /tools | |
parent | 3598a73efff969c074511f0daadba9919a65ad52 (diff) | |
download | FreeBSD-src-2b88eaa8016ec877d8de071c90161e02625c3678.zip FreeBSD-src-2b88eaa8016ec877d8de071c90161e02625c3678.tar.gz |
Fix a test that doesn't work on architectures where long double is no
wider than double. Thanks to Ian Lepore for catching the bug.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/lib/msun/test-next.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/regression/lib/msun/test-next.c b/tools/regression/lib/msun/test-next.c index 78f3c57..68e4361 100644 --- a/tools/regression/lib/msun/test-next.c +++ b/tools/regression/lib/msun/test-next.c @@ -211,7 +211,9 @@ main(int argc, char *argv[]) test(idd(nextafter(DBL_MAX, INFINITY)), INFINITY, ex_over); test(idd(nextafter(INFINITY, 0.0)), DBL_MAX, 0); test(idd(nexttoward(DBL_MAX, DBL_MAX * 2.0L)), INFINITY, ex_over); +#if LDBL_MANT_DIG > 53 test(idd(nexttoward(INFINITY, DBL_MAX * 2.0L)), DBL_MAX, 0); +#endif testf(idf(nextafterf(FLT_MAX, INFINITY)), INFINITY, ex_over); testf(idf(nextafterf(INFINITY, 0.0)), FLT_MAX, 0); |