From fb7e4816dbe48a73588f353a02e73869d356bf41 Mon Sep 17 00:00:00 2001 From: ngie Date: Mon, 5 Jan 2015 00:02:11 +0000 Subject: 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 --- contrib/netbsd-tests/lib/libm/t_scalbn.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'contrib/netbsd-tests') 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, -- cgit v1.1