From 5c64bfa640ffacc10bfd978d80d5204bd8a83983 Mon Sep 17 00:00:00 2001 From: jruoho Date: Tue, 14 Jun 2011 02:37:31 +0000 Subject: [PATCH] The NaN case for strtold(3) was fixed for x86. Adjust for the expected failures (known failures include again the special case of qemu/amd64). --- tests/lib/libc/stdlib/t_strtod.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/lib/libc/stdlib/t_strtod.c b/tests/lib/libc/stdlib/t_strtod.c index 84c0cc1d7c46..dce6cee14290 100644 --- a/tests/lib/libc/stdlib/t_strtod.c +++ b/tests/lib/libc/stdlib/t_strtod.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_strtod.c,v 1.20 2011/06/07 13:51:52 martin Exp $ */ +/* $NetBSD: t_strtod.c,v 1.21 2011/06/14 02:37:31 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ /* Public domain, Otto Moerbeek , 2006. */ #include -__RCSID("$NetBSD: t_strtod.c,v 1.20 2011/06/07 13:51:52 martin Exp $"); +__RCSID("$NetBSD: t_strtod.c,v 1.21 2011/06/14 02:37:31 jruoho Exp $"); #include #include @@ -225,9 +225,13 @@ ATF_TC_BODY(strtold_nan, tc) # ifdef __HAVE_LONG_DOUBLE char *end; -#ifndef __sparc64__ - atf_tc_expect_fail("PR lib/45020"); -#endif + /* + * See PR lib/45020. + * + * This may also fail under QEMU; cf. PR misc/44767. + */ + if (system("cpuctl identify 0 | grep -q QEMU") == 0) + atf_tc_expect_fail("PR misc/44767"); long double ld = strtold(nan_string, &end); ATF_REQUIRE(isnan(ld) != 0);