diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-11-14 14:31:52 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-11-28 21:04:10 +0000 |
commit | f50c72da4dc7ab67ea244e9c6e97404a04700c2d (patch) | |
tree | 4578749e362a255867a99829736e24bf543a34b0 /gdb/testsuite/gdb.dwarf2/dw2-common-block.exp | |
parent | 0216141ac37843192e3525dda4cc3c58810ee195 (diff) | |
download | gdb-f50c72da4dc7ab67ea244e9c6e97404a04700c2d.zip gdb-f50c72da4dc7ab67ea244e9c6e97404a04700c2d.tar.gz gdb-f50c72da4dc7ab67ea244e9c6e97404a04700c2d.tar.bz2 |
gdb/testsuite: remove use of then keyword from gdb.*/*.exp scripts
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 remaining
gdb.*/*.exp scripts. Previous commits have done the bulk of this
removal, this commit just handles the remaining directories that each
contain a low number of instances.
There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-common-block.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-common-block.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-common-block.exp b/gdb/testsuite/gdb.dwarf2/dw2-common-block.exp index f7c9e95..12c2f4c 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-common-block.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-common-block.exp @@ -37,7 +37,7 @@ if { [prepare_for_testing "failed to prepare" "${testfile}" $srcfile \ return -1 } -if ![runto MAIN__] then { +if {![runto MAIN__]} { perror "couldn't run to breakpoint MAIN__" return } |