gdc-test.exp (gdc-do-test): Sort and remove duplicate options in permute args tests.
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 26 Mar 2019 11:02:42 +0000 (11:02 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Tue, 26 Mar 2019 11:02:42 +0000 (11:02 +0000)
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.

From-SVN: r269937

gcc/testsuite/ChangeLog
gcc/testsuite/gdc.test/gdc-test.exp

index 56871ba51f93164d94894dace8bc4c552c8d06a2..88751b0a950b9ac152ded429bfc087b2de8f0e37 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2019-03-26  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/84598
index f2772e9c9e6d8e6b917567c9ec17d8e5d1b141b2..59abf74dc89a138579ca50194841da6b7c269189 100644 (file)
@@ -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 {