From: Iain Buclaw Date: Mon, 24 Aug 2020 22:28:38 +0000 (+0200) Subject: d: Don't run all permutations for fail_compilation tests. X-Git-Tag: basepoints/gcc-12~5395 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3eefc04663f325a1c76fae4d0a54284e71a57eb1;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/testsuite/lib/gdc-utils.exp b/gcc/testsuite/lib/gdc-utils.exp index 0e4f57c756d4..37c1620f307e 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 } }" } }