Module Name: src Committed By: jruoho Date: Sun Jun 5 16:33:52 UTC 2011
Modified Files: src/tests/lib/libc/stdlib: t_strtod.c Log Message: Granularity is fine, but also adjust atf_tc_expect_fail() properly. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 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.18 src/tests/lib/libc/stdlib/t_strtod.c:1.19 --- src/tests/lib/libc/stdlib/t_strtod.c:1.18 Sun Jun 5 07:58:03 2011 +++ src/tests/lib/libc/stdlib/t_strtod.c Sun Jun 5 16:33:51 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_strtod.c,v 1.18 2011/06/05 07:58:03 jmmv Exp $ */ +/* $NetBSD: t_strtod.c,v 1.19 2011/06/05 16:33:51 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.18 2011/06/05 07:58:03 jmmv Exp $"); +__RCSID("$NetBSD: t_strtod.c,v 1.19 2011/06/05 16:33:51 jruoho Exp $"); #include <errno.h> #include <math.h> @@ -114,12 +114,7 @@ #ifndef __vax__ /* * See the closed PR lib/33262. - * - * 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"); - for (size_t i = 0; i < __arraycount(inf_strings); i++) { double d = strtod(inf_strings[i], NULL); ATF_REQUIRE(isinf(d) != 0); @@ -140,12 +135,7 @@ #ifndef __vax__ /* * See the closed PR lib/33262. - * - * 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"); - for (size_t i = 0; i < __arraycount(inf_strings); i++) { float f = strtof(inf_strings[i], NULL); ATF_REQUIRE(isinf(f) != 0);