Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/stdlib Currently known failures affect only a...
details: https://anonhg.NetBSD.org/src/rev/fbeaffee209c
branches: trunk
changeset: 764005:fbeaffee209c
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sun Apr 10 10:23:45 2011 +0000
description:
Currently known failures affect only amd64; adjust atf_tc_expect_fail().
diffstat:
tests/lib/libc/stdlib/t_strtod.c | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diffs (55 lines):
diff -r 757516a568cd -r fbeaffee209c tests/lib/libc/stdlib/t_strtod.c
--- a/tests/lib/libc/stdlib/t_strtod.c Sun Apr 10 10:02:34 2011 +0000
+++ b/tests/lib/libc/stdlib/t_strtod.c Sun Apr 10 10:23:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strtod.c,v 1.4 2011/04/08 06:37:51 jruoho Exp $ */
+/* $NetBSD: t_strtod.c,v 1.5 2011/04/10 10:23:45 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,15 +32,17 @@
/* Public domain, Otto Moerbeek <otto%drijf.net@localhost>, 2006. */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtod.c,v 1.4 2011/04/08 06:37:51 jruoho Exp $");
+__RCSID("$NetBSD: t_strtod.c,v 1.5 2011/04/10 10:23:45 jruoho Exp $");
-#include <atf-c.h>
#include <errno.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <atf-c.h>
+#include <atf-c/config.h>
+
ATF_TC(strtod_basic);
ATF_TC_HEAD(strtod_basic, tc)
{
@@ -102,17 +104,20 @@
ATF_TC_BODY(strtod_inf, tc)
{
+#ifndef __vax__
+
+ const char *m_arch;
long double ld;
double d;
float f;
- d = 0.0;
- f = 0.0;
- ld = 0.0;
+ m_arch = atf_config_get("atf_arch");
-#ifndef __vax__
+ if (strcmp(m_arch, "x86_64") == 0)
+ atf_tc_expect_fail("PR lib/33262");
- atf_tc_expect_fail("PR lib/33262");
+ if (system("cpuctl identify 0 | grep -q QEMU") == 0)
+ atf_tc_expect_fail("PR lib/33262");
d = strtod("INF", NULL);
ATF_REQUIRE(isinf(d) != 0);
Home |
Main Index |
Thread Index |
Old Index