about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--math/test-misc.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 67ccca5d06..314a563e6a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
 
+	* math/test-misc.c (main): Ignore fesetround failure when failures
+	of subsequent rounding tests would be ignored.
+
 	[BZ #15654]
 	* math/fedisblxcpt.c (fedisableexcept): Return 0.
 	* math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
diff --git a/math/test-misc.c b/math/test-misc.c
index 390415ae23..27d673b823 100644
--- a/math/test-misc.c
+++ b/math/test-misc.c
@@ -1295,7 +1295,11 @@ main (void)
 	  if (fesetround (mode))
 	    {
 	      printf ("failed to set rounding mode to %s\n", mstr);
-	      result = 1;
+	      if (ROUNDING_TESTS (long double, mode)
+		  && ROUNDING_TESTS (double, mode))
+		result = 1;
+	      else
+		puts ("ignoring this failure");
 	      break;
 	    }
 	  d5 = ld5 * i;