This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][revised]: Don't XFAIL 21674.cc on darwin
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mrs at apple dot com
- Date: Sun, 14 Dec 2008 16:54:25 -0500
- Subject: [PATCH][revised]: Don't XFAIL 21674.cc on darwin
The revised patch avoids the use of the ![] match construct in xfailing
targets for the 21_strings/basic_string/element_access/wchar_t/21674.cc,
21_strings/basic_string/element_access/char/21674.cc and
22_locale/ctype/is/char/2.cc testcases. Tested on i686-apple-darwin9.
Okay for gcc trunk?
Jack
ps The target keyword can't be explicitly used with dg-xfail-run-if as it is
assumed to be present for the target field.
2008-12-14 Jack Howarth <howarth@bromo.med.uc.edu>
* testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc: Use
dg-xfail-run-if to not xfail on darwin.
* libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/21674.cc: Same.
* libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc: Switch to dg-xfail-run-if.
Index: libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc
===================================================================
--- libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc (revision 142752)
+++ libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc (working copy)
@@ -1,6 +1,6 @@
// { dg-require-debug-mode "" }
// { dg-options "-O0 -D_GLIBCXX_DEBUG" }
-// { dg-do run { xfail *-*-* } }
+// { dg-xfail-run-if "PR21674" { ! { *-*-darwin* } } { "*" } { "" } }
// Copyright (C) 2005 Free Software Foundation, Inc.
//
Index: libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/21674.cc
===================================================================
--- libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/21674.cc (revision 142752)
+++ libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/21674.cc (working copy)
@@ -1,6 +1,6 @@
// { dg-require-debug-mode "" }
// { dg-options "-O0 -D_GLIBCXX_DEBUG" }
-// { dg-do run { xfail *-*-* } }
+// { dg-xfail-run-if "PR21674" { ! { *-*-darwin* } } { "*" } { "" } }
// Copyright (C) 2005 Free Software Foundation, Inc.
//
Index: libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc
===================================================================
--- libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc (revision 142752)
+++ libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-do run { xfail *-*-![linux]* } }
+// { dg-xfail-run-if "" { ! { *-*-linux* } } { "*" } { "" } }
// { dg-require-namedlocale "" }
// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005