This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[v3] Some Solaris 2 testsuite updates
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: libstdc++ at gcc dot gnu dot org
- Date: Mon, 26 Jul 2010 22:43:02 +0200
- Subject: [v3] Some Solaris 2 testsuite updates
[Please keep me on the Cc: eventually since I'm not subscribed to
libstdc++. Thanks]
A couple of testcases are either FAILing or XPASSing on various Solaris
2 versions:
On Solaris 8 and 9/x86:
FAIL: 27_io/basic_istream/extractors_arithmetic/char/12.cc execution test
FAIL: 27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc execution test
The test has this comment:
// XXX This test fails on sparc-solaris2 because of a bug in libc
// XXX sscanf for very long input. See:
// XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html
// { dg-do run { xfail { { sparc*-*-solaris2* } || lax_strtofp } } }
The test FAILs on Solaris 8 and 9/x86, too, but XPASSes on Solaris 10
and 11/SPARC. While I couldn't get the test from Kaveh's mail to fail
even on Solaris 8, the actual tests still do.
On Solaris 8 and 9/x86:
FAIL: 22_locale/num_put/put/char/14220.cc execution test
FAIL: 22_locale/num_put/put/wchar_t/14220.cc execution test
Again, there's a comment:
// On Solaris 10 x86, this test crashes in libc. Inside libstdc++,
// we call sprintf like so:
// sprintf (buffer, "%.*f", 1000, 1.0)
// which crashes.
// { dg-do run { xfail { i?86*-*-solaris2.10 } } }
but the test fails on Solaris 9/x86, too, while Solaris 8/x86 is ok. On
the other hand, it XPASSes on 64-bit Solaris 10/x86. The first one also
FAILs on 64-bit Solaris 10/SPARC.
FAIL: ext/enc_filebuf/char/13598.cc execution test
The test is UNSUPPORTED on Solaris 8, FAILs on Solaris 9 and 10, and
works on Solaris 11 (both SPARC and x86). This happens because
% iconv -f ISO-8859-1 -t ISO-8859-1
doesnt work before Solaris 11:
Not supported ISO-8859-1 to ISO-8859-1
The following patch records those findings. Tested with the appropriate
runtest invocations, applied as obvious to mainline, will backport to 4.5
and 4.4 branches after testing.
Rainer
2010-07-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* testsuite/22_locale/num_put/put/char/14220.cc: XFAIL on Solaris
9/x86, 32-bit Solaris 10/x86 and 64-bit Solaris 10/SPARC.
* testsuite/22_locale/num_put/put/wchar_t/14220.cc: XFAIL on
Solaris 9/x86 and 32-bit Solaris 10/x86.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
Only XFAIL on Solaris 8 and 9.
* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc:
Likewise.
* testsuite/ext/enc_filebuf/char/13598.cc: XFAIL before Solaris 11.
diff -r 2b50376e6a9d libstdc++-v3/testsuite/22_locale/num_put/put/char/14220.cc
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/char/14220.cc Wed Jul 21 17:11:44 2010 +0200
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/char/14220.cc Mon Jul 26 22:18:15 2010 +0200
@@ -1,6 +1,6 @@
// 2004-04-30 Paolo Carlini <pcarlini@suse.de>
-// Copyright (C) 2004, 2009 Free Software Foundation
+// Copyright (C) 2004, 2009, 2010 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -19,11 +19,13 @@
// 22.2.2.2.1 num_put members
-// On Solaris 10 x86, this test crashes in libc. Inside libstdc++,
-// we call sprintf like so:
+// On Solaris 9/x86, 32-bit Solaris 10/x86 and 64-bit Solaris 10/SPARC, this
+// test crashes in libc. Inside libstdc++, we call sprintf like so:
// sprintf (buffer, "%.*f", 1000, 1.0)
// which crashes.
-// { dg-do run { xfail { i?86*-*-solaris2.10 } } }
+// { dg-xfail-run-if "" i?86-*-solaris2.9 }
+// { dg-xfail-run-if "" { i?86-*-solaris2.10 && ilp32 } }
+// { dg-xfail-run-if "" { sparc*-sun-solaris2.10 && lp64 } }
#include <locale>
#include <sstream>
diff -r 2b50376e6a9d libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/14220.cc
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/14220.cc Wed Jul 21 17:11:44 2010 +0200
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/14220.cc Mon Jul 26 22:18:15 2010 +0200
@@ -1,6 +1,6 @@
// 2004-04-30 Paolo Carlini <pcarlini@suse.de>
-// Copyright (C) 2004, 2009 Free Software Foundation
+// Copyright (C) 2004, 2009, 2010 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -23,11 +23,11 @@
#include <sstream>
#include <testsuite_hooks.h>
-// On Solaris 10 x86, this test crashes in libc. Inside libstdc++,
-// we call sprintf like so:
+// On Solaris 9 and 32-bit Solaris 10/x86, this test crashes in libc. Inside
+// libstdc++, we call sprintf like so:
// sprintf (buffer, "%.*f", 1000, 1.0)
// which crashes.
-// { dg-do run { xfail { i?86*-*-solaris2.10 } } }
+// { dg-do run { xfail { i?86-*-solaris2.9 || { i?86-*-solaris2.10 && ilp32 } } } }
// libstdc++/14220
void test01()
diff -r 2b50376e6a9d libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc Wed Jul 21 17:11:44 2010 +0200
+++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc Mon Jul 26 22:18:15 2010 +0200
@@ -1,6 +1,7 @@
// 1999-04-12 bkoz
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009,
+// 2010
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -20,10 +21,10 @@
// 27.6.1.2.2 arithmetic extractors
-// XXX This test fails on sparc-solaris2 because of a bug in libc
+// XXX This test fails on Solaris 8 and 9 because of a bug in libc
// XXX sscanf for very long input. See:
// XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html
-// { dg-do run { xfail { { sparc*-*-solaris2* } || lax_strtofp } } }
+// { dg-do run { xfail { { *-*-solaris2.[89] } || lax_strtofp } } }
#include <istream>
#include <sstream>
diff -r 2b50376e6a9d libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc Wed Jul 21 17:11:44 2010 +0200
+++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc Mon Jul 26 22:18:15 2010 +0200
@@ -1,4 +1,5 @@
-// Copyright (C) 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010
+// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -17,10 +18,10 @@
// 27.6.1.2.2 arithmetic extractors
-// XXX This test fails on sparc-solaris2 because of a bug in libc
+// XXX This test fails on Solaris 8 and 9 because of a bug in libc
// XXX sscanf for very long input. See:
// XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html
-// { dg-do run { xfail { { sparc*-*-solaris2* } || lax_strtofp } } }
+// { dg-do run { xfail { { *-*-solaris2.[89] } || lax_strtofp } } }
#include <istream>
#include <sstream>
diff -r 2b50376e6a9d libstdc++-v3/testsuite/ext/enc_filebuf/char/13598.cc
--- a/libstdc++-v3/testsuite/ext/enc_filebuf/char/13598.cc Wed Jul 21 17:11:44 2010 +0200
+++ b/libstdc++-v3/testsuite/ext/enc_filebuf/char/13598.cc Mon Jul 26 22:18:15 2010 +0200
@@ -1,6 +1,10 @@
+// Before Solaris 11, iconv -f ISO-8859-1 -t ISO-8859-1 fails with
+// Not supported ISO-8859-1 to ISO-8859-1
+//
+// { dg-do run { xfail *-*-solaris2.[89] *-*-solaris2.10 } }
// { dg-require-iconv "ISO-8859-1" }
-// Copyright (C) 2004, 2005, 2006, 2007, 2009 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University