Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm Mark the lib/libm/t_fmod test as an expected ...
details: https://anonhg.NetBSD.org/src/rev/d41c3c825645
branches: trunk
changeset: 335334:d41c3c825645
user: gson <gson%NetBSD.org@localhost>
date: Sat Jan 03 14:23:53 2015 +0000
description:
Mark the lib/libm/t_fmod test as an expected failure under QEMU,
with a reference to PR misc/44767.
diffstat:
tests/lib/libm/Makefile | 4 +++-
tests/lib/libm/t_fmod.c | 7 ++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diffs (46 lines):
diff -r e59935be34b8 -r d41c3c825645 tests/lib/libm/Makefile
--- a/tests/lib/libm/Makefile Sat Jan 03 14:21:05 2015 +0000
+++ b/tests/lib/libm/Makefile Sat Jan 03 14:23:53 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2014/12/27 17:55:05 martin Exp $
+# $NetBSD: Makefile,v 1.31 2015/01/03 14:23:53 gson Exp $
.include <bsd.own.mk>
@@ -16,6 +16,8 @@
COPTS+= -mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i
.endif
+CPPFLAGS.t_fmod.c+= -I${.CURDIR}/../libc/gen
+
TESTS_C+= t_acos
TESTS_C+= t_asin
TESTS_C+= t_atan
diff -r e59935be34b8 -r d41c3c825645 tests/lib/libm/t_fmod.c
--- a/tests/lib/libm/t_fmod.c Sat Jan 03 14:21:05 2015 +0000
+++ b/tests/lib/libm/t_fmod.c Sat Jan 03 14:23:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fmod.c,v 1.2 2014/02/27 17:26:02 joerg Exp $ */
+/* $NetBSD: t_fmod.c,v 1.3 2015/01/03 14:23:53 gson Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -33,6 +33,8 @@
#include <float.h>
#include <math.h>
+#include "isqemu.h"
+
ATF_TC(fmod);
ATF_TC_HEAD(fmod, tc)
{
@@ -41,6 +43,9 @@
ATF_TC_BODY(fmod, tc)
{
+ if (isQEMU())
+ atf_tc_expect_fail("PR misc/44767");
+
ATF_CHECK(fmodf(2.0, 1.0) == 0);
ATF_CHECK(fmod(2.0, 1.0) == 0);
ATF_CHECK(fmodl(2.0, 1.0) == 0);
Home |
Main Index |
Thread Index |
Old Index