Module Name: src Committed By: jruoho Date: Tue Jun 14 02:37:31 UTC 2011
Modified Files: src/tests/lib/libc/stdlib: t_strtod.c Log Message: 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). To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/tests/lib/libc/stdlib/t_strtod.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/libc/stdlib/t_strtod.c diff -u src/tests/lib/libc/stdlib/t_strtod.c:1.20 src/tests/lib/libc/stdlib/t_strtod.c:1.21 --- src/tests/lib/libc/stdlib/t_strtod.c:1.20 Tue Jun 7 13:51:52 2011 +++ src/tests/lib/libc/stdlib/t_strtod.c Tue Jun 14 02:37:31 2011 @@ -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 <o...@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 @@ # 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);