diff options
author | ngie <ngie@FreeBSD.org> | 2017-06-01 06:34:14 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-06-01 06:34:14 +0000 |
commit | f8ea2d8ceade33a331f7085786582b1d070b3225 (patch) | |
tree | 84aae31133f1e19f59add334ba0f876821a92a68 /lib/msun/tests/logarithm_test.c | |
parent | ea5c7f7373d196d1354a5d7d255caf4bdaef992d (diff) | |
download | FreeBSD-src-f8ea2d8ceade33a331f7085786582b1d070b3225.zip FreeBSD-src-f8ea2d8ceade33a331f7085786582b1d070b3225.tar.gz |
MFC r319158:
logarithm_test: assert that feclearexcept succeeds
This helps ensure that test preconditons are fulfilled.
CID: 1346572
Diffstat (limited to 'lib/msun/tests/logarithm_test.c')
-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 18b9ebe..2c92b2e 100644 --- a/lib/msun/tests/logarithm_test.c +++ b/lib/msun/tests/logarithm_test.c @@ -136,7 +136,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); |