* lib/gcc-dg.exp (dg-xfail-if): Ignore if skipping the test.

From-SVN: r90485
This commit is contained in:
Janis Johnson 2004-11-11 17:57:53 +00:00 committed by Janis Johnson
parent e1e2e653d7
commit 524136ea7b
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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" } {