aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/info_exc.exp
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-11-14 10:55:35 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-11-28 21:04:09 +0000
commited7fbdd033a272ff0d7d82c2153d7d0fade80d26 (patch)
tree16965f0ee3fdcc1e27ef8fb93fdc505a8c4f2deb /gdb/testsuite/gdb.ada/info_exc.exp
parente2afece894f0de7990997792e3781cf925a011a0 (diff)
downloadfsf-binutils-gdb-ed7fbdd033a272ff0d7d82c2153d7d0fade80d26.zip
fsf-binutils-gdb-ed7fbdd033a272ff0d7d82c2153d7d0fade80d26.tar.gz
fsf-binutils-gdb-ed7fbdd033a272ff0d7d82c2153d7d0fade80d26.tar.bz2
gdb/testsuite: remove use of then keyword from gdb.ada/*.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.ada/ test script directory. There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.ada/info_exc.exp')
-rw-r--r--gdb/testsuite/gdb.ada/info_exc.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/info_exc.exp b/gdb/testsuite/gdb.ada/info_exc.exp
index 4e0059a..c0a9e4d 100644
--- a/gdb/testsuite/gdb.ada/info_exc.exp
+++ b/gdb/testsuite/gdb.ada/info_exc.exp
@@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}