]> git.ipfire.org Git - thirdparty/glibc.git/commit
Fix math/test-fenvinline for no-exceptions configurations.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 3 Jan 2017 18:45:28 +0000 (18:45 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 3 Jan 2017 18:45:28 +0000 (18:45 +0000)
commitdaaff5cc793acdd4f8667fca3b901647b4c34363
tree620bf804f65785149b2b9d4ce01bf90b689c2cf6
parent8dad72997af2be0dc72a4bc7dbe82d85c90334fc
Fix math/test-fenvinline for no-exceptions configurations.

This patch fixes math/test-fenvinline.c to stop it failing in
no-exceptions configurations (where some exception macros are defined
but may not be supported at runtime).  The relevant parts of the test
are disabled in that case; some parts can still run (and the rounding
mode tests are written in a way such that they work even if the
rounding modes aren't supported).

Tested for mips64 soft-float, and for x86_64 to make sure the tests
still run when the exceptions are supported.

* math/test-fenvinline.c (do_test): Disable tests of raised
exceptions if !EXCEPTION_TESTS (FLOAT).
ChangeLog
math/test-fenvinline.c