diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-01-02 20:47:17 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-01-02 20:47:17 +0000 |
commit | e082ac7533e75d3dbe5b949b09e843a65348d43b (patch) | |
tree | 3f6b4dfc18d2c084fd67af3d75d0fbd6fcceee0a /ChangeLog | |
parent | f39cd196c63fe3fe7a93168aa1c1e4e65b2fb2e3 (diff) | |
download | glibc-e082ac7533e75d3dbe5b949b09e843a65348d43b.zip glibc-e082ac7533e75d3dbe5b949b09e843a65348d43b.tar.gz glibc-e082ac7533e75d3dbe5b949b09e843a65348d43b.tar.bz2 |
Fix math/test-nearbyint-except for no-exceptions configurations.
The test math/test-nearbyint-except conditions some of its tests on an
EXCEPTION_TESTS call, not not all that need such a condition. This
patch fixes it to use such a conditional for all its tests and to
return 77 (UNSUPPORTED) if none of the floating-point types tested
support exceptions.
Tested for mips64 soft float (where the test previously failed and is
now UNSUPPORTED); also tested for x86_64 to make sure the test still
PASSes in exceptions-supported cases.
* math/test-nearbyint-except.c: Include <stdbool.h>.
(any_supported): New variable.
(TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT). Otherwise
set any_supported.
(do_test): Return 77 if no floating-point type supported
exceptions.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2017-01-02 Joseph Myers <joseph@codesourcery.com> + * math/test-nearbyint-except.c: Include <stdbool.h>. + (any_supported): New variable. + (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT). Otherwise + set any_supported. + (do_test): Return 77 if no floating-point type supported + exceptions. + * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not condition on [__mips_hard_float]. |