about summary refs log tree commit diff
path: root/math/libm-test-support.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/libm-test-support.c')
-rw-r--r--math/libm-test-support.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/math/libm-test-support.c b/math/libm-test-support.c
index e59f15b4d9..1a12ed6a39 100644
--- a/math/libm-test-support.c
+++ b/math/libm-test-support.c
@@ -985,7 +985,8 @@ enable_test (int exceptions)
     return 0;
   if (flag_test_finite && (exceptions & NON_FINITE) != 0)
     return 0;
-  if (!SNAN_TESTS (FLOAT) && (exceptions & TEST_SNAN) != 0)
+  if ((!SNAN_TESTS (FLOAT) || !snan_tests_arg)
+      && (exceptions & TEST_SNAN) != 0)
     return 0;
   if (flag_test_mathvec && (exceptions & NO_TEST_MATHVEC) != 0)
     return 0;