[patch] fix to allow dg-xfail-if with compat tests
Janis Johnson
janis187@us.ibm.com
Tue Nov 30 22:44:00 GMT 2004
This change makes it possible to use dg-xfail-if in compat tests.
There are no tests that use it yet, but I broke it recently and have
tested the fix with local changes to tests to verify that it works.
I'm checking this in.
2004-11-30 Janis Johnson <janis187@us.ibm.com>
* lib/compat.exp (compat-get-options): Fix for use with dg-xfail-if.
Index: lib/compat.exp
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/lib/compat.exp,v
retrieving revision 1.11
diff -u -p -r1.11 compat.exp
--- lib/compat.exp 23 Jul 2004 22:36:46 -0000 1.11
+++ lib/compat.exp 12 Nov 2004 00:30:47 -0000
@@ -200,6 +200,9 @@ proc compat-get-options { src } {
global compiler_conditional_xfail_data
set compiler_conditional_xfail_data ""
+ # dg-xfail-if needs access to dg-do-what.
+ upvar dg-do-what dg-do-what
+
set tmp [dg-get-options $src]
foreach op $tmp {
set cmd [lindex $op 0]
More information about the Gcc-patches
mailing list