From: Joseph Myers Date: Mon, 17 Jun 2013 11:48:11 +0000 (+0000) Subject: Use math-tests.h more in math/test-misc. X-Git-Tag: glibc-2.18~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a8463176c3edf52c38af022ce44e210f9bf4aaa;p=thirdparty%2Fglibc.git Use math-tests.h more in math/test-misc. --- diff --git a/ChangeLog b/ChangeLog index af0d2433f0e..e7291a6fa0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-06-17 Joseph Myers + + * math/test-misc.c (main): Do not treat incorrectly rounded + conversions as failure unless ROUNDING_TESTS passes. + 2013-06-15 Joseph Myers [BZ #15631] diff --git a/math/test-misc.c b/math/test-misc.c index 94c7c1531f9..390415ae238 100644 --- a/math/test-misc.c +++ b/math/test-misc.c @@ -1306,7 +1306,11 @@ main (void) { printf ("%La incorrectly rounded to %s as %a\n", ld5 * i, mstr, d5); - result = 1; + if (ROUNDING_TESTS (long double, mode) + && ROUNDING_TESTS (double, mode)) + result = 1; + else + puts ("ignoring this failure"); } } } @@ -1322,7 +1326,11 @@ main (void) if (d7 != nextafter (0.0, 1.0)) { printf ("%La incorrectly rounded upward to %a\n", ld7, d7); - result = 1; + if (ROUNDING_TESTS (long double, FE_UPWARD) + && ROUNDING_TESTS (double, FE_UPWARD)) + result = 1; + else + puts ("ignoring this failure"); } #endif