aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.fortran/array-element.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/array-element.exp
parent6ca2ea063a71d6e2742096f980c2607e9d413cf5 (diff)
downloadgdb-49bb47443c05e573d1675adba6d8f07562db2d3f.zip
gdb-49bb47443c05e573d1675adba6d8f07562db2d3f.tar.gz
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/array-element.exp')
-rw-r--r--gdb/testsuite/gdb.fortran/array-element.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.fortran/array-element.exp b/gdb/testsuite/gdb.fortran/array-element.exp
index 22b72e2..f5d313c 100644
--- a/gdb/testsuite/gdb.fortran/array-element.exp
+++ b/gdb/testsuite/gdb.fortran/array-element.exp
@@ -26,7 +26,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
return -1
}
-if ![runto sub_] then {
+if {![runto sub_]} {
perror "couldn't run to breakpoint sub_"
return
}