aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.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/process-dies-while-handling-bp.exp
parentb0e16ca58d444a2b6dc2b4f71081d6c761d9712e (diff)
downloadbinutils-b8ffa8b32737636f1579fc164c625fe41abd61d8.zip
binutils-b8ffa8b32737636f1579fc164c625fe41abd61d8.tar.gz
binutils-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/process-dies-while-handling-bp.exp')
-rw-r--r--gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp b/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp
index d630805..6261434 100644
--- a/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp
+++ b/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp
@@ -45,7 +45,7 @@ proc do_test { non_stop cond_bp_target } {
clean_restart $binfile
set GDBFLAGS $saved_gdbflags
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}