This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: XFAIL 14220 for Solaris 2.10
- From: Mark Mitchell <mark at codesourcery dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 7 May 2007 11:22:13 -0700
- Subject: PATCH: XFAIL 14220 for Solaris 2.10
- Reply-to: mark at codesourcery dot com
These two tests fail on Solaris 2.10 because of a bug in the Solaris C
library; calling:
sprintf (buffer, "%.*f", 1000, 1.0)
crashes. I've delibereately limited the XFAIL patterns to Solaris
2.10 x86, becasue I don't know what happens on other Solaris systems.
It's possible that Sun will fix this in future, so I think just
XFAILing all Solaris systems would be a mistake. The comments in the
testcases are designed to make it easy for people testing other
versions of Solaris to recognize what's going on, and modify the
regexp to cover more systems, if necessary.
OK to apply?
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
2007-05-07 Mark Mitchell <mark@codesourcery.com>
* testsuite/22_locale/num_put/put/char/14220.cc: XFAIL on Solaris
2.10.
* testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.
Index: libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/14220.cc
===================================================================
--- libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/14220.cc (revision 124476)
+++ libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/14220.cc (working copy)
@@ -24,6 +24,12 @@
#include <sstream>
#include <testsuite_hooks.h>
+// 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 } } }
+
// libstdc++/14220
void test01()
{
Index: libstdc++-v3/testsuite/22_locale/num_put/put/char/14220.cc
===================================================================
--- libstdc++-v3/testsuite/22_locale/num_put/put/char/14220.cc (revision 124476)
+++ libstdc++-v3/testsuite/22_locale/num_put/put/char/14220.cc (working copy)
@@ -20,6 +20,12 @@
// 22.2.2.2.1 num_put members
+// 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 } } }
+
#include <locale>
#include <sstream>
#include <testsuite_hooks.h>