diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-11-14 14:15:49 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-11-28 21:04:09 +0000 |
commit | b8ffa8b32737636f1579fc164c625fe41abd61d8 (patch) | |
tree | 34538de3d8e624834476d507cd790e6b07bded83 /gdb/testsuite/gdb.threads/linux-dp.exp | |
parent | b0e16ca58d444a2b6dc2b4f71081d6c761d9712e (diff) | |
download | binutils-gdb-b8ffa8b32737636f1579fc164c625fe41abd61d8.tar.gz |
gdb/testsuite: remove use of then keyword from gdb.threads/*.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.threads/
test script directory.
There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.threads/linux-dp.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/linux-dp.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.threads/linux-dp.exp b/gdb/testsuite/gdb.threads/linux-dp.exp index 953e6a9756b..84c68e7cace 100644 --- a/gdb/testsuite/gdb.threads/linux-dp.exp +++ b/gdb/testsuite/gdb.threads/linux-dp.exp @@ -35,7 +35,7 @@ # This only works with Linux configurations. -if ![istarget *-*-linux-gnu*] then { +if {![istarget *-*-linux-gnu*]} { return } |