summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-11-16 20:39:11 +0000
committerngie <ngie@FreeBSD.org>2014-11-16 20:39:11 +0000
commit936ba721aa645daa4c8ce1b8f820cd614c853aa3 (patch)
tree30f6b2aaabf47d49eef87321764d4ce81a70e1d2 /contrib/netbsd-tests
parenta56804aa390c383af5507aed46a063b15c2d97cb (diff)
downloadFreeBSD-src-936ba721aa645daa4c8ce1b8f820cd614c853aa3.zip
FreeBSD-src-936ba721aa645daa4c8ce1b8f820cd614c853aa3.tar.gz
- Expect exp2_powers to fail on FreeBSD/i386
- Expect exp2_values to fail on FreeBSD due to the small epsilon Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r--contrib/netbsd-tests/lib/libm/t_exp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libm/t_exp.c b/contrib/netbsd-tests/lib/libm/t_exp.c
index 6d41097..7a8e9f8 100644
--- a/contrib/netbsd-tests/lib/libm/t_exp.c
+++ b/contrib/netbsd-tests/lib/libm/t_exp.c
@@ -131,6 +131,10 @@ ATF_LIBM_TEST(exp2_powers, "Test exp2(x) is correct for some integer x")
};
unsigned int i;
+#if defined(__FreeBSD__) && defined(__i386__)
+ atf_tc_expect_fail("a number of the assertions fail on i386");
+#endif
+
for (i = 0; i < __arraycount(v); i++) {
T_LIBM_CHECK(i, exp2, v[i].x, v[i].d_y, 0.0);
T_LIBM_CHECK(i, exp2f, v[i].x, v[i].f_y, 0.0);
@@ -173,6 +177,11 @@ ATF_LIBM_TEST(exp2_values, "Test exp2(x) is correct for some x")
};
unsigned int i;
+#ifdef __FreeBSD__
+ atf_tc_expect_fail("Some of the cases produce failures on FreeBSD "
+ "due to the error epsilon being so small");
+#endif
+
for (i = 0; i < __arraycount(v); i++) {
T_LIBM_CHECK(i, exp2, v[i].x, v[i].y, v[i].d_eps);
if (i > 1)
OpenPOWER on IntegriCloud