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).
This commit is contained in:
jruoho 2011-06-14 02:37:31 +00:00
parent 306494e25a
commit 5c64bfa640
1 changed files with 9 additions and 5 deletions

View File

@ -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 <otto@drijf.net>, 2006. */
#include <sys/cdefs.h>
__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 <errno.h>
#include <math.h>
@ -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);