aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/watchthreads.exp
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-11-14 14:15:49 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-11-28 21:04:09 +0000
commitb8ffa8b32737636f1579fc164c625fe41abd61d8 (patch)
tree34538de3d8e624834476d507cd790e6b07bded83 /gdb/testsuite/gdb.threads/watchthreads.exp
parentb0e16ca58d444a2b6dc2b4f71081d6c761d9712e (diff)
downloadgdb-b8ffa8b32737636f1579fc164c625fe41abd61d8.zip
gdb-b8ffa8b32737636f1579fc164c625fe41abd61d8.tar.gz
gdb-b8ffa8b32737636f1579fc164c625fe41abd61d8.tar.bz2
gdb/testsuite: remove use of then keyword from gdb.threads/*.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.threads/ test script directory. There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.threads/watchthreads.exp')
-rw-r--r--gdb/testsuite/gdb.threads/watchthreads.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.threads/watchthreads.exp b/gdb/testsuite/gdb.threads/watchthreads.exp
index 7003044..7fac8a3 100644
--- a/gdb/testsuite/gdb.threads/watchthreads.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads.exp
@@ -44,7 +44,7 @@ gdb_test_no_output "set can-use-hw-watchpoints 1" ""
# Run to `main' where we begin our tests.
#
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}