diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2021-03-22 11:42:07 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-03-22 11:55:06 +0000 |
commit | b424e0038a00dffbec800a6f0778db0ffdabe9d6 (patch) | |
tree | 6e906971ded7909c130b628f2abae50aff94c050 /lib/msun/tests/next_test.c | |
parent | b358534ab1a953fac5830012751232e2f0807cc0 (diff) | |
download | src-b424e0038a00dffbec800a6f0778db0ffdabe9d6.tar.gz src-b424e0038a00dffbec800a6f0778db0ffdabe9d6.zip |
Improve test messages for msun tests
Also print the mismatched values when numbers compare not equal.
Reviewed By: dim
Differential Revision: https://reviews.freebsd.org/D29091
Diffstat (limited to 'lib/msun/tests/next_test.c')
-rw-r--r-- | lib/msun/tests/next_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/tests/next_test.c b/lib/msun/tests/next_test.c index 5801dc0e3589..763b1cc14e60 100644 --- a/lib/msun/tests/next_test.c +++ b/lib/msun/tests/next_test.c @@ -247,7 +247,7 @@ _testl(const char *exp, int line, long double actual, long double expected, int actual_except; actual_except = fetestexcept(ALL_STD_EXCEPT); - if (!fpequal(actual, expected)) { + if (!fpequal_cs(actual, expected, true)) { atf_tc_fail_check(__FILE__, line, "%s returned %La, expecting %La\n", exp, actual, expected); } |