diff options
Diffstat (limited to 'gcc/testsuite/lib/torture-options.exp')
-rw-r--r-- | gcc/testsuite/lib/torture-options.exp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gcc/testsuite/lib/torture-options.exp b/gcc/testsuite/lib/torture-options.exp index 5649674639d..f3b3e22948b 100644 --- a/gcc/testsuite/lib/torture-options.exp +++ b/gcc/testsuite/lib/torture-options.exp @@ -61,12 +61,6 @@ proc set-torture-options { args } { set other_list [list {}] } - if { [llength $args] > 2 } { - set append_list [lindex $args 2] - } else { - set append_list [list {}] - } - set torture_with_loops "" set torture_without_loops "" foreach torture_opts $torture_list { @@ -80,8 +74,11 @@ proc set-torture-options { args } { } } - append torture_with_loops " $append_list" - append torture_without_loops " $append_list" + if { [llength $args] > 2 } { + set append_list [lindex $args 2] + append torture_with_loops " $append_list" + append torture_without_loops " $append_list" + } } # Finish up after using a set of torture options. |