Allow fesetround failures in math/test-misc.c if ROUNDING_TESTS fails.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 20 Jun 2013 19:11:34 +0000 (19:11 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 20 Jun 2013 19:11:34 +0000 (19:11 +0000)
ChangeLog
math/test-misc.c

index 67ccca5..314a563 100644 (file)
--- 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.
index 390415a..27d673b 100644 (file)
@@ -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;