diff mbox series

[committed] gdc-test.exp: Remove duplicate options from permute args

Message ID CABOHX+e_CLrQFySoCq9uuZNr7DcrfTi2czHLbTd9gEKF=RDJ-g@mail.gmail.com
State New
Headers show
Series [committed] gdc-test.exp: Remove duplicate options from permute args | expand

Commit Message

Iain Buclaw March 26, 2019, 11:03 a.m. UTC
Hi,

Some of the dmd-style options converted in gdc-convert-args are mapped
to two separate options, notably those that control warning and
deprecation messages (-w, -de, -dw).  When given as arguments to
PERMUTE_ARGS, there is no need to test with the same gdc-style option
given twice.

Ran the D testsuite on x86_64-linux-gnu, and number of tests executed
dropped from 30030 to 28350.

Committed to trunk as r269937.
diff mbox series

Patch

diff --git a/gcc/testsuite/gdc.test/gdc-test.exp b/gcc/testsuite/gdc.test/gdc-test.exp
index f2772e9c9e6..59abf74dc89 100644
--- a/gcc/testsuite/gdc.test/gdc-test.exp
+++ b/gcc/testsuite/gdc.test/gdc-test.exp
@@ -393,7 +393,7 @@  proc gdc-do-test { } {
 	if { $dir == "runnable" } {
 	    append PERMUTE_ARGS " $SHARED_OPTION"
 	}
-	set options [gdc-permute-options $PERMUTE_ARGS]
+	set options [gdc-permute-options [lsort -unique $PERMUTE_ARGS]]
 
 	switch $dir {
 	    runnable {