diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-06-17 11:48:11 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-06-17 11:48:11 +0000 |
commit | 1a8463176c3edf52c38af022ce44e210f9bf4aaa (patch) | |
tree | f2f8452d1a144a3f71d46060a2c0a0c653430852 /math | |
parent | 3711a167f6b5203b4414db7853f3c57f1260e1bf (diff) | |
download | glibc-1a8463176c3edf52c38af022ce44e210f9bf4aaa.tar.gz glibc-1a8463176c3edf52c38af022ce44e210f9bf4aaa.tar.xz glibc-1a8463176c3edf52c38af022ce44e210f9bf4aaa.zip |
Use math-tests.h more in math/test-misc.
Diffstat (limited to 'math')
-rw-r--r-- | math/test-misc.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/math/test-misc.c b/math/test-misc.c index 94c7c1531f..390415ae23 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 |