Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib Fix build failure on VAX.
details: https://anonhg.NetBSD.org/src/rev/55abee453a2a
branches: trunk
changeset: 763935:55abee453a2a
user: jruoho <jruoho%NetBSD.org@localhost>
date: Fri Apr 08 06:37:50 2011 +0000
description:
Fix build failure on VAX.
diffstat:
tests/lib/libc/stdlib/t_strtod.c | 11 +++++++++--
tests/lib/libm/t_tanh.c | 9 +++++++--
2 files changed, 16 insertions(+), 4 deletions(-)
diffs (76 lines):
diff -r 89844973a143 -r 55abee453a2a tests/lib/libc/stdlib/t_strtod.c
--- a/tests/lib/libc/stdlib/t_strtod.c Thu Apr 07 18:14:08 2011 +0000
+++ b/tests/lib/libc/stdlib/t_strtod.c Fri Apr 08 06:37:50 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strtod.c,v 1.3 2011/04/06 07:25:34 jruoho Exp $ */
+/* $NetBSD: t_strtod.c,v 1.4 2011/04/08 06:37:51 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
/* Public domain, Otto Moerbeek <otto%drijf.net@localhost>, 2006. */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtod.c,v 1.3 2011/04/06 07:25:34 jruoho Exp $");
+__RCSID("$NetBSD: t_strtod.c,v 1.4 2011/04/08 06:37:51 jruoho Exp $");
#include <atf-c.h>
#include <errno.h>
@@ -106,6 +106,12 @@
double d;
float f;
+ d = 0.0;
+ f = 0.0;
+ ld = 0.0;
+
+#ifndef __vax__
+
atf_tc_expect_fail("PR lib/33262");
d = strtod("INF", NULL);
@@ -116,6 +122,7 @@
ld = strtold("INF", NULL);
ATF_REQUIRE(isinf(ld) != 0);
+#endif
}
ATF_TC(strtod_underflow);
diff -r 89844973a143 -r 55abee453a2a tests/lib/libm/t_tanh.c
--- a/tests/lib/libm/t_tanh.c Thu Apr 07 18:14:08 2011 +0000
+++ b/tests/lib/libm/t_tanh.c Fri Apr 08 06:37:50 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_tanh.c,v 1.1 2011/04/06 09:35:49 jruoho Exp $ */
+/* $NetBSD: t_tanh.c,v 1.2 2011/04/08 06:37:50 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_tanh.c,v 1.1 2011/04/06 09:35:49 jruoho Exp $");
+__RCSID("$NetBSD: t_tanh.c,v 1.2 2011/04/08 06:37:50 jruoho Exp $");
#include <math.h>
@@ -46,6 +46,10 @@
double d;
float f;
+ d = 0.0;
+ f = 0.0;
+
+#ifndef __vax__
/*
* PR lib/44057.
*/
@@ -54,6 +58,7 @@
ATF_REQUIRE(signbit(d) != 0);
ATF_REQUIRE(signbit(f) != 0);
+#endif
}
ATF_TP_ADD_TCS(tp)
Home |
Main Index |
Thread Index |
Old Index