aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-08-25 00:28:38 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-08-26 10:03:54 +0200
commit3eefc04663f325a1c76fae4d0a54284e71a57eb1 (patch)
treed80f0663bfb5a374a971793985c6957e0c2e2a0c /gcc
parent747f01eb6e702c4ba6589a275b42bebbf1e26741 (diff)
downloadgcc-3eefc04663f325a1c76fae4d0a54284e71a57eb1.zip
gcc-3eefc04663f325a1c76fae4d0a54284e71a57eb1.tar.gz
gcc-3eefc04663f325a1c76fae4d0a54284e71a57eb1.tar.bz2
d: Don't run all permutations for fail_compilation tests.
Fail compilation tests only check for language errors from the front-end, all default option switches do nothing to alter the error. gcc/testsuite/ChangeLog: * lib/gdc-utils.exp (gdc-convert-test): Clear PERMUTE_ARGS for fail_compilation tests if not set by test file.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/lib/gdc-utils.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/gdc-utils.exp b/gcc/testsuite/lib/gdc-utils.exp
index 0e4f57c..37c1620 100644
--- a/gcc/testsuite/lib/gdc-utils.exp
+++ b/gcc/testsuite/lib/gdc-utils.exp
@@ -370,6 +370,11 @@ proc gdc-convert-test { base test } {
}
fail_compilation {
+ # Fail compilation tests only check for language errors from the
+ # front-end. No need to run all permutations of the default DFLAGS.
+ if { $PERMUTE_ARGS == $DEFAULT_DFLAGS } {
+ set PERMUTE_ARGS ""
+ }
puts $fdout "// { dg-final { output-exists-not } }"
}
}