diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-11-14 11:31:04 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-11-28 21:04:09 +0000 |
commit | 65a33d75c2667895f067cc5f9079215126cbb2eb (patch) | |
tree | fdd3f74defa60f3a0cb96123071d49990fd9cfe0 /gdb/testsuite/gdb.base/return.exp | |
parent | ed7fbdd033a272ff0d7d82c2153d7d0fade80d26 (diff) | |
download | fsf-binutils-gdb-65a33d75c2667895f067cc5f9079215126cbb2eb.zip fsf-binutils-gdb-65a33d75c2667895f067cc5f9079215126cbb2eb.tar.gz fsf-binutils-gdb-65a33d75c2667895f067cc5f9079215126cbb2eb.tar.bz2 |
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/return.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/return.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/return.exp b/gdb/testsuite/gdb.base/return.exp index e3e4702..82a18fa 100644 --- a/gdb/testsuite/gdb.base/return.exp +++ b/gdb/testsuite/gdb.base/return.exp @@ -25,7 +25,7 @@ proc return_tests { } { global gdb_prompt skip_float_test - if { ! [ runto func1 ] } then { return 0 } + if {![runto func1]} { return 0 } gdb_test_multiple "return" "simple return" { -re "Make .* return now.*y or n. $" { |