summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/member-ptr.exp
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-11-14 14:06:11 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-11-28 21:04:09 +0000
commit95701caeadd48415b3cb3d7fc7d9a4ef84211c55 (patch)
tree962f42653c9fe9714acf4cdea617094fe011f8c6 /gdb/testsuite/gdb.cp/member-ptr.exp
parent75b6f3866450afa1219ca986910619302f7effb7 (diff)
downloadbinutils-gdb-95701caeadd48415b3cb3d7fc7d9a4ef84211c55.tar.gz
gdb/testsuite: remove use of then keyword from gdb.cp/*.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.cp/ test script directory. There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.cp/member-ptr.exp')
-rw-r--r--gdb/testsuite/gdb.cp/member-ptr.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/member-ptr.exp b/gdb/testsuite/gdb.cp/member-ptr.exp
index 5b91bcb493a..8e20c018203 100644
--- a/gdb/testsuite/gdb.cp/member-ptr.exp
+++ b/gdb/testsuite/gdb.cp/member-ptr.exp
@@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}