From b0e16ca58d444a2b6dc2b4f71081d6c761d9712e Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Mon, 14 Nov 2022 14:12:07 +0000 Subject: gdb/testsuite: remove use of then keyword from gdb.python/*.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.python/ test script directory. There should be no changes in what is tested after this commit. --- gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp') diff --git a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp b/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp index eb3fc9e35fa..76386bb6df1 100644 --- a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp +++ b/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp @@ -47,7 +47,7 @@ proc start_test { breakpoint_comment } { clean_restart ${binfile} - if { ![runto_main] } then { + if {![runto_main]} { untested "couldn't run to breakpoint" return -1 } @@ -66,7 +66,7 @@ proc start_test { breakpoint_comment } { # Start by testing the "run" command, it can't leverage start_test with_test_prefix "run to frame" { - if { ![runto_main] } then { + if {![runto_main]} { untested "couldn't run to main" } -- cgit v1.2.1