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 The NaN case for strtold(3) was fixed ...



details:   https://anonhg.NetBSD.org/src/rev/493abf06b140
branches:  trunk
changeset: 766033:493abf06b140
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Tue Jun 14 02:37:31 2011 +0000

description:
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).

diffstat:

 tests/lib/libc/stdlib/t_strtod.c |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 7a685d094d72 -r 493abf06b140 tests/lib/libc/stdlib/t_strtod.c
--- a/tests/lib/libc/stdlib/t_strtod.c  Tue Jun 14 02:11:47 2011 +0000
+++ b/tests/lib/libc/stdlib/t_strtod.c  Tue Jun 14 02:37:31 2011 +0000
@@ -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@localhost>, 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);



Home | Main Index | Thread Index | Old Index