aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--math/test-fenvinline.c13
2 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 1bb6eaa..70b6435 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-03 Joseph Myers <joseph@codesourcery.com>
+
+ * math/test-fenvinline.c (do_test): Disable tests of raised
+ exceptions if !EXCEPTION_TESTS (FLOAT).
+
2017-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
[BZ #19390]
diff --git a/math/test-fenvinline.c b/math/test-fenvinline.c
index 38964ef..8fdfb38 100644
--- a/math/test-fenvinline.c
+++ b/math/test-fenvinline.c
@@ -326,8 +326,9 @@ do_test (void)
/* raise all exceptions and test if all are raised */
feraiseexcept (FE_ALL_EXCEPT);
- test_exceptions ("feraiseexcept (FE_ALL_EXCEPT) raises all exceptions",
- ALL_EXC);
+ if (EXCEPTION_TESTS (float))
+ test_exceptions ("feraiseexcept (FE_ALL_EXCEPT) raises all exceptions",
+ ALL_EXC);
/* Same test, but using double as argument */
feclearexcept ((double)FE_ALL_EXCEPT);
@@ -335,10 +336,12 @@ do_test (void)
NO_EXC);
feraiseexcept ((double)FE_ALL_EXCEPT);
- test_exceptions ("feraiseexcept ((double)FE_ALL_EXCEPT) raises all exceptions",
- ALL_EXC);
+ if (EXCEPTION_TESTS (float))
+ test_exceptions ("feraiseexcept ((double)FE_ALL_EXCEPT) raises all exceptions",
+ ALL_EXC);
- test_exceptionflag ();
+ if (EXCEPTION_TESTS (float))
+ test_exceptionflag ();
test_fesetround ();