diff options
author | ngie <ngie@FreeBSD.org> | 2015-01-05 00:02:11 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-01-05 00:02:11 +0000 |
commit | fb7e4816dbe48a73588f353a02e73869d356bf41 (patch) | |
tree | 1fe3cd4b264e3d82078f0190ef6e6f8118b80cc6 /contrib/netbsd-tests | |
parent | 6f128b2d1aeea28705ed13c65395d7719bc3ebb5 (diff) | |
download | FreeBSD-src-fb7e4816dbe48a73588f353a02e73869d356bf41.zip FreeBSD-src-fb7e4816dbe48a73588f353a02e73869d356bf41.tar.gz |
MFC r274618,r276521:
MFC Note: text corrected for r274618
r274618:
Add reachover Makefiles for contrib/netbsd-tests/lib/msun
A variant of this code has been tested on amd64/i386 for some time by
EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the
code will remain off until it's proven it works on virtual hardware or real
hardware on other architectures
Sponsored by: EMC / Isilon Storage Division
r276521:
Reset errno in :scalbnf_val and :scalbnl_val before running the tests so the
tested errno isn't stale
This was needed in order for the test to pass on amd64 with stable/10
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r-- | contrib/netbsd-tests/lib/libm/t_scalbn.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libm/t_scalbn.c b/contrib/netbsd-tests/lib/libm/t_scalbn.c index 2d186cf..fe70b3c 100644 --- a/contrib/netbsd-tests/lib/libm/t_scalbn.c +++ b/contrib/netbsd-tests/lib/libm/t_scalbn.c @@ -225,6 +225,9 @@ ATF_TC_BODY(scalbnf_val, tc) double rv; for (i = 0; i < tcnt; i++) { +#ifdef __FreeBSD__ + errno = 0; +#endif rv = scalbnf(tests[i].inval, tests[i].exp); ATF_CHECK_EQ_MSG(errno, tests[i].error, "test %zu: errno %d instead of %d", i, errno, @@ -369,6 +372,9 @@ ATF_TC_BODY(scalbnl_val, tc) long double rv; for (i = 0; i < tcnt; i++) { +#ifdef __FreeBSD__ + errno = 0; +#endif rv = scalbnl(tests[i].inval, tests[i].exp); ATF_CHECK_EQ_MSG(errno, tests[i].error, "test %zu: errno %d instead of %d", i, errno, |