diff options
author | ngie <ngie@FreeBSD.org> | 2017-06-01 06:34:35 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-06-01 06:34:35 +0000 |
commit | 6b1f5a4b53f7b898cede12f6c980dea7c591f1e5 (patch) | |
tree | 418a0349ad8e7335b29743a4dcc51323baa4c372 | |
parent | 1bc7624c8bb0fdf5f97f70d58d76305b0679bd69 (diff) | |
download | FreeBSD-src-6b1f5a4b53f7b898cede12f6c980dea7c591f1e5.zip FreeBSD-src-6b1f5a4b53f7b898cede12f6c980dea7c591f1e5.tar.gz |
MFC r319158:
logarithm_test: assert that feclearexcept succeeds
This helps ensure that test preconditons are fulfilled.
CID: 1346572
-rw-r--r-- | lib/msun/tests/logarithm_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/tests/logarithm_test.c b/lib/msun/tests/logarithm_test.c index 8f253e3..43911f6 100644 --- a/lib/msun/tests/logarithm_test.c +++ b/lib/msun/tests/logarithm_test.c @@ -137,7 +137,7 @@ run_log2_tests(void) * We should insist that log2() return exactly the correct * result and not raise an inexact exception for powers of 2. */ - feclearexcept(FE_ALL_EXCEPT); + assert(feclearexcept(FE_ALL_EXCEPT) == 0); for (i = FLT_MIN_EXP - FLT_MANT_DIG; i < FLT_MAX_EXP; i++) { assert(log2f(ldexpf(1.0, i)) == i); assert(fetestexcept(ALL_STD_EXCEPT) == 0); |