aboutsummaryrefslogtreecommitdiff
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/mod_from_name.exp
parentgdb/testsuite: remove DOS line endings from a test script (diff)
downloadbinutils-gdb-ed7fbdd033a272ff0d7d82c2153d7d0fade80d26.tar.gz
binutils-gdb-ed7fbdd033a272ff0d7d82c2153d7d0fade80d26.tar.bz2
binutils-gdb-ed7fbdd033a272ff0d7d82c2153d7d0fade80d26.zip
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/mod_from_name.exp')
-rw-r--r--gdb/testsuite/gdb.ada/mod_from_name.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/mod_from_name.exp b/gdb/testsuite/gdb.ada/mod_from_name.exp
index 009e32d4dd1..8eb61565ff4 100644
--- a/gdb/testsuite/gdb.ada/mod_from_name.exp
+++ b/gdb/testsuite/gdb.ada/mod_from_name.exp
@@ -29,7 +29,7 @@ foreach_with_prefix scenario {all minimal} {
clean_restart ${testfile}-${scenario}
set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
- if ![runto "foo.adb:$bp_location" ] then {
+ if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}-${scenario}"
return
}