d: Don't run all permutations for fail_compilation tests.
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 24 Aug 2020 22:28:38 +0000 (00:28 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Wed, 26 Aug 2020 08:03:54 +0000 (10:03 +0200)
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.

gcc/testsuite/lib/gdc-utils.exp

index 0e4f57c756d4f0f6c300f0b77a97c461a61f1e8a..37c1620f307e813950d8709a2c62f0c3ebfc6b83 100644 (file)
@@ -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 } }"
        }
     }