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.xml | |
parent | 0216141ac37843192e3525dda4cc3c58810ee195 (diff) | |
download | fsf-binutils-gdb-f50c72da4dc7ab67ea244e9c6e97404a04700c2d.zip fsf-binutils-gdb-f50c72da4dc7ab67ea244e9c6e97404a04700c2d.tar.gz fsf-binutils-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.xml')
-rw-r--r-- | gdb/testsuite/gdb.xml/tdesc-reload.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml/tdesc-reload.exp index 6e3fe2f..5c3f702 100644 --- a/gdb/testsuite/gdb.xml/tdesc-reload.exp +++ b/gdb/testsuite/gdb.xml/tdesc-reload.exp @@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { return -1 } -if ![runto_main] then { +if {![runto_main]} { return 0 } @@ -62,7 +62,7 @@ gdb_test_no_output "set tdesc filename $xml_file_1" \ gdb_load ${binfile} # Run to `main' where we begin our tests. -if ![runto_main] then { +if {![runto_main]} { return -1 } |