aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJanis Johnson <janis187@us.ibm.com>2004-11-11 17:57:53 +0000
committerJanis Johnson <janis@gcc.gnu.org>2004-11-11 17:57:53 +0000
commit524136ea7b852cdcfa8f52e853c50451d229bcaf (patch)
tree8d5047e9786c194aa6ae6da1b09f73f47b91a2d1 /gcc
parente1e2e653d7fdcf6c9f1cafb76fbb016c1879029d (diff)
downloadgcc-524136ea7b852cdcfa8f52e853c50451d229bcaf.zip
gcc-524136ea7b852cdcfa8f52e853c50451d229bcaf.tar.gz
gcc-524136ea7b852cdcfa8f52e853c50451d229bcaf.tar.bz2
* lib/gcc-dg.exp (dg-xfail-if): Ignore if skipping the test.
From-SVN: r90485
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/lib/gcc-dg.exp6
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 776f8e4..0849f1d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-11-11 Janis Johnson <janis187@us.ibm.com>
+
+ * lib/gcc-dg.exp (dg-xfail-if): Ignore if skipping the test.
+
2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
PR target/16457
diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp
index be9169d..81fbd04 100644
--- a/gcc/testsuite/lib/gcc-dg.exp
+++ b/gcc/testsuite/lib/gcc-dg.exp
@@ -445,6 +445,12 @@ proc dg-prune-output { args } {
# Like check_conditional_xfail, but callable from a dg test.
proc dg-xfail-if { args } {
+ # Don't change anything if we're already skipping the test.
+ upvar dg-do-what dg-do-what
+ if { [lindex ${dg-do-what} 1] == "N" } {
+ return
+ }
+
set args [lreplace $args 0 0]
set selector "target [join [lindex $args 1]]"
if { [dg-process-target $selector] == "S" } {