summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/volatile.exp
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-11-14 11:31:04 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-11-28 21:04:09 +0000
commit65a33d75c2667895f067cc5f9079215126cbb2eb (patch)
treefdd3f74defa60f3a0cb96123071d49990fd9cfe0 /gdb/testsuite/gdb.base/volatile.exp
parented7fbdd033a272ff0d7d82c2153d7d0fade80d26 (diff)
downloadbinutils-gdb-65a33d75c2667895f067cc5f9079215126cbb2eb.tar.gz
gdb/testsuite: remove use of then keyword from gdb.base/*.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.base/ test script directory. There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.base/volatile.exp')
-rw-r--r--gdb/testsuite/gdb.base/volatile.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/volatile.exp b/gdb/testsuite/gdb.base/volatile.exp
index 4c56eb40fe9..7fda22647c3 100644
--- a/gdb/testsuite/gdb.base/volatile.exp
+++ b/gdb/testsuite/gdb.base/volatile.exp
@@ -42,7 +42,7 @@ if { [prepare_for_testing "failed to prepare" volatile constvars.c] } {
#
# set it up at a breakpoint so we can play with the variable values
#
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -52,7 +52,7 @@ get_debug_format
# Many tests xfail with gcc 2 -gstabs+.
proc local_compiler_xfail_check { } {
- if { [test_compiler_info gcc-2-*] } then {
+ if {[test_compiler_info gcc-2-*]} {
if { ![test_debug_format "HP"] \
&& ![test_debug_format "DWARF \[0-9\]"] } then {
setup_xfail "*-*-*"