Module Name:    src
Committed By:   snj
Date:           Mon Jan 12 21:03:09 UTC 2015

Modified Files:
        src/tests/lib/libm [netbsd-7]: Makefile t_fmod.c

Log Message:
Pull up following revision(s) (requested by gson in ticket #413):
        tests/lib/libm/Makefile: revision 1.31
        tests/lib/libm/t_fmod.c: revision 1.3
Mark the lib/libm/t_fmod test as an expected failure under QEMU,
with a reference to PR misc/44767.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.26.2.1 src/tests/lib/libm/Makefile
cvs rdiff -u -r1.2 -r1.2.6.1 src/tests/lib/libm/t_fmod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libm/Makefile
diff -u src/tests/lib/libm/Makefile:1.26 src/tests/lib/libm/Makefile:1.26.2.1
--- src/tests/lib/libm/Makefile:1.26	Sun Aug 10 11:30:51 2014
+++ src/tests/lib/libm/Makefile	Mon Jan 12 21:03:09 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2014/08/10 11:30:51 martin Exp $
+# $NetBSD: Makefile,v 1.26.2.1 2015/01/12 21:03:09 snj Exp $
 
 .include <bsd.own.mk>
 
@@ -14,6 +14,8 @@ CPPFLAGS+=	-DHAVE_FENV_H
 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

Index: src/tests/lib/libm/t_fmod.c
diff -u src/tests/lib/libm/t_fmod.c:1.2 src/tests/lib/libm/t_fmod.c:1.2.6.1
--- src/tests/lib/libm/t_fmod.c:1.2	Thu Feb 27 17:26:02 2014
+++ src/tests/lib/libm/t_fmod.c	Mon Jan 12 21:03:09 2015
@@ -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.2.6.1 2015/01/12 21:03:09 snj 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_HEAD(fmod, tc)
 
 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);

Reply via email to