aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.fortran/subarray.exp
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-11-14 14:24:37 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-11-28 21:04:09 +0000
commit49bb47443c05e573d1675adba6d8f07562db2d3f (patch)
tree2ddf0c75c426062009c021c96712a987068916d1 /gdb/testsuite/gdb.fortran/subarray.exp
parent6ca2ea063a71d6e2742096f980c2607e9d413cf5 (diff)
downloadfsf-binutils-gdb-49bb47443c05e573d1675adba6d8f07562db2d3f.zip
fsf-binutils-gdb-49bb47443c05e573d1675adba6d8f07562db2d3f.tar.gz
fsf-binutils-gdb-49bb47443c05e573d1675adba6d8f07562db2d3f.tar.bz2
gdb/testsuite: remove use of then keyword from gdb.fortran/*.exp
The canonical form of 'if' in modern TCL is 'if {} {}'. But there's still a bunch of places in the testsuite where we make use of the 'then' keyword, and sometimes these get copies into new tests, which just spreads poor practice. This commit removes all use of the 'then' keyword from the gdb.fortran/ test script directory. There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.fortran/subarray.exp')
-rw-r--r--gdb/testsuite/gdb.fortran/subarray.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.fortran/subarray.exp b/gdb/testsuite/gdb.fortran/subarray.exp
index b282c5d..88d47f9 100644
--- a/gdb/testsuite/gdb.fortran/subarray.exp
+++ b/gdb/testsuite/gdb.fortran/subarray.exp
@@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
# Avoid shared lib symbols.
gdb_test_no_output "set auto-solib-add off"
-if ![fortran_runto_main] then {
+if {![fortran_runto_main]} {
perror "couldn't run to main"
return
}