diff options
author | Jim Meyering <meyering@redhat.com> | 2011-08-31 17:47:18 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-08-31 18:57:05 +0200 |
commit | 9926b90d5159916a539b49359b3589fe89c2d987 (patch) | |
tree | 10476f199f52ff455e04a7db1a59cc9926b35990 /tests/test-float.c | |
parent | f02585c1b0257f35aab61aae924f3f91ff7439e0 (diff) | |
download | gnulib-9926b90d5159916a539b49359b3589fe89c2d987.tar.gz |
tests: avoid spurious assertion failure in test-float.c on ppc64
* tests/test-float.c (test_long_double): Comment out an assertion,
LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
with gcc-4.4.4.
Diffstat (limited to 'tests/test-float.c')
-rw-r--r-- | tests/test-float.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test-float.c b/tests/test-float.c index 530181306f..57a472faea 100644 --- a/tests/test-float.c +++ b/tests/test-float.c @@ -298,7 +298,14 @@ test_long_double (void) /* Check that 'long double' is at least as wide as 'double'. */ ASSERT (LDBL_MANT_DIG >= DBL_MANT_DIG); - ASSERT (LDBL_MIN_EXP <= DBL_MIN_EXP); + + /* Normally, we would also assert this: + ASSERT (LDBL_MIN_EXP <= DBL_MIN_EXP); + but at least on powerpc64 with gcc-4.4.4, it would fail: + $ :|gcc -dD -E -include stddef.h -|grep -E 'L?DBL_MIN_EXP' + #define __DBL_MIN_EXP__ (-1021) + #define __LDBL_MIN_EXP__ (-968) + */ ASSERT (LDBL_MAX_EXP >= DBL_MAX_EXP); /* Check the value of LDBL_DIG. */ |