]> git.ipfire.org Git - thirdparty/glibc.git/commit
Fix math/test-fenv for no-exceptions / no-rounding-modes configurations.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 9 Jan 2017 18:27:49 +0000 (18:27 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 9 Jan 2017 18:27:49 +0000 (18:27 +0000)
commitc6be839efded78768ad3c70d7f2e913a9fb8603c
treeb4f2c3f5989142b0cc87c72213db607efe261333
parentc35db50ff51480c39e5ce493561df1c4581da9fc
Fix math/test-fenv for no-exceptions / no-rounding-modes configurations.

This patch fixes math/test-fenv.c to check EXCEPTION_TESTS and
ROUNDING_TESTS to avoid failing in cases where some exceptions or
rounding modes are defined but not supported at runtime.

Tested for mips64 soft float and for x86_64.

* math/test-fenv.c (fe_tests): Skip most tests when exceptions not
supported.
(feholdexcept_tests): Skip tests requiring exceptions or rounding
modes support if not supported.
ChangeLog
math/test-fenv.c