about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2014-04-11 15:13:42 -0400
committerChris Metcalf <cmetcalf@tilera.com>2014-04-11 15:13:42 -0400
commit9c9daaeb83fc71655f37347112f56f1a1785681e (patch)
tree7b2510d3105031d0a53d06fec3b781754a046eea /math
parent95561fb9c55acccc2a5d5daac145fd3daeb27fa7 (diff)
downloadglibc-9c9daaeb83fc71655f37347112f56f1a1785681e.tar.gz
glibc-9c9daaeb83fc71655f37347112f56f1a1785681e.tar.xz
glibc-9c9daaeb83fc71655f37347112f56f1a1785681e.zip
math: make test-fenv-preserve.c a no-op if FE_ALL_EXCEPT == 0.
This fixes a testsuite failure for tile (and possibly microblaze).
Diffstat (limited to 'math')
-rw-r--r--math/test-fenv-preserve.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/math/test-fenv-preserve.c b/math/test-fenv-preserve.c
index 8288b2c971..89f2e2bd81 100644
--- a/math/test-fenv-preserve.c
+++ b/math/test-fenv-preserve.c
@@ -22,6 +22,7 @@
 static int
 do_test (void)
 {
+#if FE_ALL_EXCEPT
   fenv_t env;
 
   if (feenableexcept (FE_INVALID) != 0)
@@ -47,6 +48,10 @@ do_test (void)
       printf ("fegetexcept returned %d, expected %d\n", ret, FE_INVALID);
       return 1;
     }
+#else
+  puts ("No exceptions defined, cannot test");
+  return 0;
+#endif
 }
 
 #define TEST_FUNCTION do_test ()