aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.disasm/t04_sub.exp
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-11-14 14:22:46 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-11-28 21:04:09 +0000
commit6ca2ea063a71d6e2742096f980c2607e9d413cf5 (patch)
tree6f59c4d1e7b77f69734bba8ddadc570b43010e12 /gdb/testsuite/gdb.disasm/t04_sub.exp
parentbde43e8dbeaf4c9b05514f0c749623db453747bb (diff)
downloadfsf-binutils-gdb-6ca2ea063a71d6e2742096f980c2607e9d413cf5.zip
fsf-binutils-gdb-6ca2ea063a71d6e2742096f980c2607e9d413cf5.tar.gz
fsf-binutils-gdb-6ca2ea063a71d6e2742096f980c2607e9d413cf5.tar.bz2
gdb/testsuite: remove use of then keyword from gdb.disasm/*.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.disasm/ test script directory. There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.disasm/t04_sub.exp')
-rw-r--r--gdb/testsuite/gdb.disasm/t04_sub.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.disasm/t04_sub.exp b/gdb/testsuite/gdb.disasm/t04_sub.exp
index 4f4353e..5ac5829 100644
--- a/gdb/testsuite/gdb.disasm/t04_sub.exp
+++ b/gdb/testsuite/gdb.disasm/t04_sub.exp
@@ -30,12 +30,12 @@ set asm-flags ""
set link-flags "-m h8300sxelf"
-if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} then {
+if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
untested "failed to assemble"
return -1
}
-if {[target_link $objfile $binfile "${link-flags}"] != ""} then {
+if {[target_link $objfile $binfile "${link-flags}"] != ""} {
untested "failed to link"
return -1
}