This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] gdc-test.exp: Remove duplicate options from permute args
- From: Iain Buclaw <ibuclaw at gdcproject dot org>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 26 Mar 2019 12:03:43 +0100
- Subject: [PATCH, committed] gdc-test.exp: Remove duplicate options from permute args
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.
--
Iain
---
gcc/testsuite/ChangeLog:
2019-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
* gdc.test/gdc-test.exp (gdc-do-test): Sort and remove duplicate
options in permute args tests.
---
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 {