This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] fix to allow dg-xfail-if with compat tests
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 30 Nov 2004 13:35:26 -0800
- Subject: [patch] fix to allow dg-xfail-if with compat tests
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]