gdb/testsuite: remove use of then keyword from gdb.cp/*.exp
authorAndrew Burgess <aburgess@redhat.com>
Mon, 14 Nov 2022 14:06:11 +0000 (14:06 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 28 Nov 2022 21:04:09 +0000 (21:04 +0000)
commit95701caeadd48415b3cb3d7fc7d9a4ef84211c55
tree962f42653c9fe9714acf4cdea617094fe011f8c6
parent75b6f3866450afa1219ca986910619302f7effb7
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.
66 files changed:
gdb/testsuite/gdb.cp/ambiguous.exp
gdb/testsuite/gdb.cp/anon-union.exp
gdb/testsuite/gdb.cp/breakpoint.exp
gdb/testsuite/gdb.cp/bs15503.exp
gdb/testsuite/gdb.cp/casts.exp
gdb/testsuite/gdb.cp/class2.exp
gdb/testsuite/gdb.cp/classes.exp
gdb/testsuite/gdb.cp/converts.exp
gdb/testsuite/gdb.cp/ctti.exp
gdb/testsuite/gdb.cp/derivation.exp
gdb/testsuite/gdb.cp/disasm-func-name.exp
gdb/testsuite/gdb.cp/dispcxx.exp
gdb/testsuite/gdb.cp/ena-dis-br-range.exp
gdb/testsuite/gdb.cp/filename.exp
gdb/testsuite/gdb.cp/fpointer.exp
gdb/testsuite/gdb.cp/gdb1355.exp
gdb/testsuite/gdb.cp/gdb2384.exp
gdb/testsuite/gdb.cp/gdb2495.exp
gdb/testsuite/gdb.cp/inherit.exp
gdb/testsuite/gdb.cp/koenig.exp
gdb/testsuite/gdb.cp/local-static.exp
gdb/testsuite/gdb.cp/local.exp
gdb/testsuite/gdb.cp/m-data.exp
gdb/testsuite/gdb.cp/m-static.exp
gdb/testsuite/gdb.cp/mb-ctor.exp
gdb/testsuite/gdb.cp/member-name.exp
gdb/testsuite/gdb.cp/member-ptr.exp
gdb/testsuite/gdb.cp/method-call-in-c.exp
gdb/testsuite/gdb.cp/method.exp
gdb/testsuite/gdb.cp/namespace-nested-import.exp
gdb/testsuite/gdb.cp/namespace.exp
gdb/testsuite/gdb.cp/nextoverthrow.exp
gdb/testsuite/gdb.cp/nsdecl.exp
gdb/testsuite/gdb.cp/nsimport.exp
gdb/testsuite/gdb.cp/nsnested.exp
gdb/testsuite/gdb.cp/nsnoimports.exp
gdb/testsuite/gdb.cp/nsrecurs.exp
gdb/testsuite/gdb.cp/nsstress.exp
gdb/testsuite/gdb.cp/nsusing.exp
gdb/testsuite/gdb.cp/operator.exp
gdb/testsuite/gdb.cp/oranking.exp
gdb/testsuite/gdb.cp/overload.exp
gdb/testsuite/gdb.cp/pr-1023.exp
gdb/testsuite/gdb.cp/pr-1210.exp
gdb/testsuite/gdb.cp/pr-574.exp
gdb/testsuite/gdb.cp/pr10687.exp
gdb/testsuite/gdb.cp/pr10728.exp
gdb/testsuite/gdb.cp/pr12028.exp
gdb/testsuite/gdb.cp/pr9067.exp
gdb/testsuite/gdb.cp/pr9167.exp
gdb/testsuite/gdb.cp/pr9631.exp
gdb/testsuite/gdb.cp/printmethod.exp
gdb/testsuite/gdb.cp/ptype-flags.exp
gdb/testsuite/gdb.cp/ref-types.exp
gdb/testsuite/gdb.cp/rtti.exp
gdb/testsuite/gdb.cp/rvalue-ref-types.exp
gdb/testsuite/gdb.cp/shadow.exp
gdb/testsuite/gdb.cp/smartp.exp
gdb/testsuite/gdb.cp/try_catch.exp
gdb/testsuite/gdb.cp/userdef.exp
gdb/testsuite/gdb.cp/virtbase.exp
gdb/testsuite/gdb.cp/virtbase2.exp
gdb/testsuite/gdb.cp/virtfunc.exp
gdb/testsuite/gdb.cp/virtfunc2.exp
gdb/testsuite/gdb.cp/watch-cp.exp
gdb/testsuite/gdb.cp/wide_char_types.exp