summaryrefslogtreecommitdiff
path: root/lib/msun
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-05-29 18:49:28 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-05-29 18:49:28 +0000
commitb97ee15f62f97bfaf676fb12c9ca2990c2f00848 (patch)
tree7532e78dc7711f385f8e3be9650be3cf01037856 /lib/msun
parent2dd512c37f6ec5600228913abc5df6882265f993 (diff)
downloadsrc-test2-b97ee15f62f97bfaf676fb12c9ca2990c2f00848.tar.gz
src-test2-b97ee15f62f97bfaf676fb12c9ca2990c2f00848.zip
Notes
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/tests/logarithm_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/tests/logarithm_test.c b/lib/msun/tests/logarithm_test.c
index 8f253e38e46f..43911f63b281 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);