diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-11-14 14:06:11 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-11-28 21:04:09 +0000 |
commit | 95701caeadd48415b3cb3d7fc7d9a4ef84211c55 (patch) | |
tree | 962f42653c9fe9714acf4cdea617094fe011f8c6 /gdb/testsuite/gdb.cp/gdb2384.exp | |
parent | 75b6f3866450afa1219ca986910619302f7effb7 (diff) | |
download | fsf-binutils-gdb-95701caeadd48415b3cb3d7fc7d9a4ef84211c55.zip fsf-binutils-gdb-95701caeadd48415b3cb3d7fc7d9a4ef84211c55.tar.gz fsf-binutils-gdb-95701caeadd48415b3cb3d7fc7d9a4ef84211c55.tar.bz2 |
gdb/testsuite: remove use of then keyword from gdb.cp/*.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.cp/
test script directory.
There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.cp/gdb2384.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/gdb2384.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/gdb2384.exp b/gdb/testsuite/gdb.cp/gdb2384.exp index 4181ab4..7fc5a5b 100644 --- a/gdb/testsuite/gdb.cp/gdb2384.exp +++ b/gdb/testsuite/gdb.cp/gdb2384.exp @@ -38,7 +38,7 @@ clean_restart ${binfile} gdb_load_shlib ${sofile} -if ![runto_main] then { +if {![runto_main]} { perror "couldn't run to breakpoint" return -1 } |