diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2004-03-16 19:42:23 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2004-03-16 18:42:23 +0000 |
commit | cd9b76514e47cb923c0b187c35a51e92dbf80126 (patch) | |
tree | 10c110b4ae3582797e68b60a5d099adabde81aaf /gcc | |
parent | 65e8d2e0e17c7c80703d647f7c3643ba23a2d646 (diff) | |
download | gcc-cd9b76514e47cb923c0b187c35a51e92dbf80126.zip gcc-cd9b76514e47cb923c0b187c35a51e92dbf80126.tar.gz gcc-cd9b76514e47cb923c0b187c35a51e92dbf80126.tar.bz2 |
compat.exp (skip_list): New global variable.
* lib/compat.exp (skip_list): New global variable.
Use it to hold the user defined COMPAT_SKIPS list if any.
(compat-obj): Add the members of skip_list to optall.
From-SVN: r79540
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/compat.exp | 23 |
2 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a7d2d49..847bf1d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2004-03-16 Eric Botcazou <ebotcazou@libertysurf.fr> + * lib/compat.exp (skip_list): New global variable. + Use it to hold the user defined COMPAT_SKIPS list if any. + (compat-obj): Add the members of skip_list to optall. + +2004-03-16 Eric Botcazou <ebotcazou@libertysurf.fr> + * gcc.dg/compat/union-by-value-1_main.c, union-by-value-1_x.c, union-by-value-1_y.c, union-check.h, union-defs.h, diff --git a/gcc/testsuite/lib/compat.exp b/gcc/testsuite/lib/compat.exp index bf40c6e..0a7cfec 100644 --- a/gcc/testsuite/lib/compat.exp +++ b/gcc/testsuite/lib/compat.exp @@ -49,6 +49,21 @@ if ![info exists COMPAT_OPTIONS] { set option_list $COMPAT_OPTIONS +# Subsets of tests can be selectively disabled by members of this list: +# - ATTRIBUTE: disable all tests using the __attribute__ extension, +# - COMPLEX_INT: disable all tests using the complex integral types extension, +# - VA: disable all tests using the variable number of arguments feature, +# - ZERO_ARRAY: disable all tests using the zero-sized arrays extension. +# The default skip lists can be overriden by +# COMPAT_SKIPS="[list {skip_1}...{skip_n}]" +# where skip_i are skip identifiers. You can put this in the environment +# before site.exp is written or add it to site.exp directly. +if ![info exists COMPAT_SKIPS] { + set COMPAT_SKIPS [list {}] +} + +set skip_list $COMPAT_SKIPS + load_lib dg.exp load_lib gcc-dg.exp @@ -66,6 +81,14 @@ proc compat-obj { source dest optall optfile optstr xfaildata } { global testcase global tool global compiler_conditional_xfail_data + global skip_list + + # Add the skip specifiers. + foreach skip $skip_list { + if { ![string match $skip ""] } { + lappend optall "-DSKIP_$skip" + } + } # Set up the options for compiling this file. set options "" |