diff options
38 files changed, 66 insertions, 66 deletions
diff --git a/gdb/testsuite/gdb.python/lib-types.exp b/gdb/testsuite/gdb.python/lib-types.exp index a01e9d7..35da911 100644 --- a/gdb/testsuite/gdb.python/lib-types.exp +++ b/gdb/testsuite/gdb.python/lib-types.exp @@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } 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 eb3fc9e..76386bb 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" } diff --git a/gdb/testsuite/gdb.python/py-bad-printers.exp b/gdb/testsuite/gdb.python/py-bad-printers.exp index 2ef7f48..01654ad 100644 --- a/gdb/testsuite/gdb.python/py-bad-printers.exp +++ b/gdb/testsuite/gdb.python/py-bad-printers.exp @@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main ] then { +if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-block.exp b/gdb/testsuite/gdb.python/py-block.exp index 0bc020a..0a88aec 100644 --- a/gdb/testsuite/gdb.python/py-block.exp +++ b/gdb/testsuite/gdb.python/py-block.exp @@ -27,7 +27,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp index c3215b1..e36e87d 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-breakpoint.exp @@ -46,7 +46,7 @@ proc_with_prefix test_bkpt_basic { } { # We should start with no breakpoints. gdb_test "python print (gdb.breakpoints())" "\\(\\)" - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -128,7 +128,7 @@ proc_with_prefix test_bkpt_deletion { } { # Start with a fresh gdb. clean_restart ${testfile} - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -163,7 +163,7 @@ proc_with_prefix test_bkpt_cond_and_cmds { } { # Start with a fresh gdb. clean_restart ${testfile} - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -220,7 +220,7 @@ proc_with_prefix test_bkpt_invisible { } { # Start with a fresh gdb. clean_restart ${testfile} - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -265,7 +265,7 @@ proc_with_prefix test_hardware_breakpoints { } { # Start with a fresh gdb. clean_restart ${testfile} - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -293,7 +293,7 @@ proc_with_prefix test_watchpoints { } { gdb_test_no_output "set can-use-hw-watchpoints 0" "" } - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -316,7 +316,7 @@ proc_with_prefix test_bkpt_internal { } { if {$skip_hw_watchpoint_tests_p} { gdb_test_no_output "set can-use-hw-watchpoints 0" "" } - if ![runto_main] then { + if {![runto_main]} { return 0 } delete_breakpoints @@ -364,7 +364,7 @@ proc_with_prefix test_bkpt_eval_funcs { } { if {$skip_hw_watchpoint_tests_p} { gdb_test_no_output "set can-use-hw-watchpoints 0" "" } - if ![runto_main] then { + if {![runto_main]} { return 0 } delete_breakpoints @@ -477,7 +477,7 @@ proc_with_prefix test_bkpt_temporary { } { # Start with a fresh gdb. clean_restart ${testfile} - if ![runto_main] then { + if {![runto_main]} { return 0 } delete_breakpoints @@ -595,7 +595,7 @@ proc_with_prefix test_bkpt_explicit_loc {} { # Start with a fresh gdb. clean_restart ${testfile} - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -680,7 +680,7 @@ proc_with_prefix test_bkpt_qualified {} { set one_location_re "Breakpoint $decimal at $hex:.*line $decimal." set two_location_re "Breakpoint $decimal at $hex:.*2 locations." - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -749,7 +749,7 @@ proc_with_prefix test_bkpt_probe {} { return -1 } - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -766,7 +766,7 @@ proc_with_prefix test_catchpoints {} { # Start with a fresh gdb. clean_restart ${testfile} - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -825,7 +825,7 @@ proc_with_prefix test_bkpt_auto_disable { } { # Start with a fresh gdb. clean_restart ${testfile} - if ![runto_main] then { + if {![runto_main]} { return 0 } delete_breakpoints diff --git a/gdb/testsuite/gdb.python/py-cmd.exp b/gdb/testsuite/gdb.python/py-cmd.exp index 82f1c35..aa95a45 100644 --- a/gdb/testsuite/gdb.python/py-cmd.exp +++ b/gdb/testsuite/gdb.python/py-cmd.exp @@ -27,7 +27,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-connection.exp b/gdb/testsuite/gdb.python/py-connection.exp index 91315eb..fc212fc 100644 --- a/gdb/testsuite/gdb.python/py-connection.exp +++ b/gdb/testsuite/gdb.python/py-connection.exp @@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-disasm.exp b/gdb/testsuite/gdb.python/py-disasm.exp index 1f94d3e..2fe20c3 100644 --- a/gdb/testsuite/gdb.python/py-disasm.exp +++ b/gdb/testsuite/gdb.python/py-disasm.exp @@ -27,7 +27,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} "debug"] } # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-events.exp b/gdb/testsuite/gdb.python/py-events.exp index 9476273..ce9342a 100644 --- a/gdb/testsuite/gdb.python/py-events.exp +++ b/gdb/testsuite/gdb.python/py-events.exp @@ -317,7 +317,7 @@ with_test_prefix "gdb exiting: normal" { with_test_prefix "gdb exiting: error" { clean_restart ${testfile} - if ![runto_main] then { + if {![runto_main]} { fail "cannot run to main." return 0 } diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp index c525337..2f6c2f7 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp @@ -50,7 +50,7 @@ with_test_prefix "normal conditions" { clean_restart ${testfile} gdb_load_shlib ${lib_sl} - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -102,7 +102,7 @@ with_test_prefix "no debug symbol" { "import python scripts" set cond_line [gdb_get_line_number "Condition Break."] - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -129,7 +129,7 @@ with_test_prefix "function returned by longjump" { gdb_test "source $python_file" "Python script imported.*" \ "import python scripts" - if ![runto call_longjmp_1] then { + if {![runto call_longjmp_1]} { return } @@ -157,7 +157,7 @@ with_test_prefix "finish in dummy frame" { "import python scripts" - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -184,7 +184,7 @@ with_test_prefix "finish in normal frame" { gdb_test "source $python_file" "Python script imported.*" \ "import python scripts" - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -213,7 +213,7 @@ with_test_prefix "explicit inferior function call" { gdb_test "source $python_file" "Python script imported.*" \ "import python scripts" - if ![runto_main] then { + if {![runto_main]} { return 0 } @@ -240,7 +240,7 @@ with_test_prefix "explicit inferior function call" { # with_test_prefix "inferior exit" { - if ![runto "test_exec_exit"] then { + if {![runto "test_exec_exit"]} { return 0 } @@ -254,7 +254,7 @@ with_test_prefix "inferior exit" { # with_test_prefix "inferior exec" { - if ![runto "test_exec_exit"] then { + if {![runto "test_exec_exit"]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp index 6ad0bef..3075847 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp @@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-format-string.exp b/gdb/testsuite/gdb.python/py-format-string.exp index 45b0851..26b18ce 100644 --- a/gdb/testsuite/gdb.python/py-format-string.exp +++ b/gdb/testsuite/gdb.python/py-format-string.exp @@ -52,7 +52,7 @@ proc prepare_gdb {exefile} { gdb_reinitialize_dir $srcdir/$subdir gdb_load ${exefile} - if ![runto_main] then { + if {![runto_main]} { perror "couldn't run to breakpoint" return } diff --git a/gdb/testsuite/gdb.python/py-frame-inline.exp b/gdb/testsuite/gdb.python/py-frame-inline.exp index 44726ca..791749c 100644 --- a/gdb/testsuite/gdb.python/py-frame-inline.exp +++ b/gdb/testsuite/gdb.python/py-frame-inline.exp @@ -24,7 +24,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp index 56e1ecd..27130a9 100644 --- a/gdb/testsuite/gdb.python/py-frame.exp +++ b/gdb/testsuite/gdb.python/py-frame.exp @@ -29,7 +29,7 @@ if { [skip_python_tests] } { continue } # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp index 5fbce55..81c4340 100644 --- a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp +++ b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp @@ -51,7 +51,7 @@ gdb_load ${binfile} gdb_test "info auto-load python-scripts" "Yes.*${testfile}-gdb.py.*" \ "Test auto-load had loaded python scripts" -if ![runto_main] then { +if {![runto_main]} { perror "couldn't run to breakpoint" return } diff --git a/gdb/testsuite/gdb.python/py-framefilter.exp b/gdb/testsuite/gdb.python/py-framefilter.exp index 7a172e7..794d1c2 100644 --- a/gdb/testsuite/gdb.python/py-framefilter.exp +++ b/gdb/testsuite/gdb.python/py-framefilter.exp @@ -52,7 +52,7 @@ gdb_load ${binfile} gdb_test "info auto-load python-scripts" "Yes.*${testfile}-gdb.py.*" \ "Test auto-load had loaded python scripts" -if ![runto_main] then { +if {![runto_main]} { perror "couldn't run to breakpoint" return } @@ -310,7 +310,7 @@ gdb_load ${binfile} # Verify gdb loaded the script. gdb_test "info auto-load python-scripts" "Yes.*${testfile}-gdb.py.*" \ "Set autoload path for no debug info tests" -if ![runto_main] then { +if {![runto_main]} { perror "couldn't run to breakpoint" return } diff --git a/gdb/testsuite/gdb.python/py-inferior.exp b/gdb/testsuite/gdb.python/py-inferior.exp index 552f9b1..8fcd97a 100644 --- a/gdb/testsuite/gdb.python/py-inferior.exp +++ b/gdb/testsuite/gdb.python/py-inferior.exp @@ -37,7 +37,7 @@ switch [get_endianness] { # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-infthread.exp b/gdb/testsuite/gdb.python/py-infthread.exp index a775419..4ca2b86 100644 --- a/gdb/testsuite/gdb.python/py-infthread.exp +++ b/gdb/testsuite/gdb.python/py-infthread.exp @@ -40,7 +40,7 @@ gdb_test_multiline "install new_thread event handler" \ # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-nested-maps.exp b/gdb/testsuite/gdb.python/py-nested-maps.exp index 70d4f77..ea71a79 100644 --- a/gdb/testsuite/gdb.python/py-nested-maps.exp +++ b/gdb/testsuite/gdb.python/py-nested-maps.exp @@ -34,7 +34,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } { return -1 } -if ![runto_main ] then { +if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-objfile.exp b/gdb/testsuite/gdb.python/py-objfile.exp index 9565c16..80f2e79 100644 --- a/gdb/testsuite/gdb.python/py-objfile.exp +++ b/gdb/testsuite/gdb.python/py-objfile.exp @@ -27,7 +27,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-pending-frame-level.exp b/gdb/testsuite/gdb.python/py-pending-frame-level.exp index 57ee6b6..3cf8d4d 100644 --- a/gdb/testsuite/gdb.python/py-pending-frame-level.exp +++ b/gdb/testsuite/gdb.python/py-pending-frame-level.exp @@ -26,7 +26,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-pp-maint.exp b/gdb/testsuite/gdb.python/py-pp-maint.exp index 8d8974c..19cabe8 100644 --- a/gdb/testsuite/gdb.python/py-pp-maint.exp +++ b/gdb/testsuite/gdb.python/py-pp-maint.exp @@ -32,7 +32,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main ] then { +if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp index c604005..46a346c 100644 --- a/gdb/testsuite/gdb.python/py-prettyprint.exp +++ b/gdb/testsuite/gdb.python/py-prettyprint.exp @@ -42,7 +42,7 @@ proc run_lang_tests {exefile lang} { gdb_reinitialize_dir $srcdir/$subdir gdb_load ${exefile} - if ![runto_main ] then { + if {![runto_main]} { perror "couldn't run to breakpoint" return } @@ -198,7 +198,7 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} -if ![runto_main ] then { +if {![runto_main]} { perror "couldn't run to breakpoint" return } diff --git a/gdb/testsuite/gdb.python/py-rbreak.exp b/gdb/testsuite/gdb.python/py-rbreak.exp index 4c641c9..f32cffc 100644 --- a/gdb/testsuite/gdb.python/py-rbreak.exp +++ b/gdb/testsuite/gdb.python/py-rbreak.exp @@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" ${testfile} [list $srcfile $srcfile # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-record-btrace.exp b/gdb/testsuite/gdb.python/py-record-btrace.exp index e9fdd06..bbaf268 100644 --- a/gdb/testsuite/gdb.python/py-record-btrace.exp +++ b/gdb/testsuite/gdb.python/py-record-btrace.exp @@ -35,7 +35,7 @@ if { [skip_python_tests] } { return -1 } -if ![runto_main ] then { +if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-record-full.exp b/gdb/testsuite/gdb.python/py-record-full.exp index f3ccefa..52d6dd3 100644 --- a/gdb/testsuite/gdb.python/py-record-full.exp +++ b/gdb/testsuite/gdb.python/py-record-full.exp @@ -35,7 +35,7 @@ if { [skip_python_tests] } { return -1 } -if ![runto_main ] then { +if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-recurse-unwind.exp b/gdb/testsuite/gdb.python/py-recurse-unwind.exp index 6361417..711b8b0 100644 --- a/gdb/testsuite/gdb.python/py-recurse-unwind.exp +++ b/gdb/testsuite/gdb.python/py-recurse-unwind.exp @@ -40,7 +40,7 @@ gdb_test "source ${pyfile}" "Python script imported" \ # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-shared.exp b/gdb/testsuite/gdb.python/py-shared.exp index 7075bc5..8dfd53a 100644 --- a/gdb/testsuite/gdb.python/py-shared.exp +++ b/gdb/testsuite/gdb.python/py-shared.exp @@ -48,7 +48,7 @@ if { [skip_python_tests] } { continue } # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-symbol.exp b/gdb/testsuite/gdb.python/py-symbol.exp index ef4f86d..ad06b07 100644 --- a/gdb/testsuite/gdb.python/py-symbol.exp +++ b/gdb/testsuite/gdb.python/py-symbol.exp @@ -104,7 +104,7 @@ gdb_test "python print (gdb.lookup_static_symbol ('nonexistent') is None)" \ gdb_test "python print (gdb.lookup_static_symbol ('qq') is None)" \ "True" "lookup_static_symbol for global var" -if ![runto_main] then { +if {![runto_main]} { return 0 } @@ -212,7 +212,7 @@ gdb_test "python print (gdb.lookup_global_symbol ('(anonymous namespace)::anon') gdb_test "python print (gdb.lookup_static_symbol ('(anonymous namespace)::anon').value ())" \ "10" "print value of anon" -if ![runto_main] then { +if {![runto_main]} { return 0 } @@ -240,7 +240,7 @@ gdb_test "python print (cplusfunc.addr_class == gdb.SYMBOL_LOC_BLOCK)" "True" "t # test as it unloads the object file in GDB. # Start with a fresh gdb. clean_restart ${binfile} -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-symtab.exp b/gdb/testsuite/gdb.python/py-symtab.exp index 9075066..4707108 100644 --- a/gdb/testsuite/gdb.python/py-symtab.exp +++ b/gdb/testsuite/gdb.python/py-symtab.exp @@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-template.exp b/gdb/testsuite/gdb.python/py-template.exp index 729faef..25f3f52 100644 --- a/gdb/testsuite/gdb.python/py-template.exp +++ b/gdb/testsuite/gdb.python/py-template.exp @@ -43,7 +43,7 @@ proc test_template_arg {exefile type} { return -1 } gdb_load ${exefile} - if ![runto_main ] then { + if {![runto_main]} { perror "couldn't run to breakpoint" return } diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp index 20f5084..fbe56f3 100644 --- a/gdb/testsuite/gdb.python/py-type.exp +++ b/gdb/testsuite/gdb.python/py-type.exp @@ -41,7 +41,7 @@ proc restart_gdb {exefile} { gdb_reinitialize_dir $srcdir/$subdir gdb_load ${exefile} - if ![runto_main ] then { + if {![runto_main]} { perror "couldn't run to breakpoint" return } diff --git a/gdb/testsuite/gdb.python/py-unwind-inline.exp b/gdb/testsuite/gdb.python/py-unwind-inline.exp index 6667e29..b316ec0 100644 --- a/gdb/testsuite/gdb.python/py-unwind-inline.exp +++ b/gdb/testsuite/gdb.python/py-unwind-inline.exp @@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ if { [skip_python_tests] } { continue } # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-unwind-maint.exp b/gdb/testsuite/gdb.python/py-unwind-maint.exp index 7c88219..28121ca 100644 --- a/gdb/testsuite/gdb.python/py-unwind-maint.exp +++ b/gdb/testsuite/gdb.python/py-unwind-maint.exp @@ -29,7 +29,7 @@ if { [skip_python_tests] } { continue } set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py] -if ![runto_main ] then { +if {![runto_main]} { return -1 } diff --git a/gdb/testsuite/gdb.python/py-unwind-user-regs.exp b/gdb/testsuite/gdb.python/py-unwind-user-regs.exp index 3430cbc..182a548 100644 --- a/gdb/testsuite/gdb.python/py-unwind-user-regs.exp +++ b/gdb/testsuite/gdb.python/py-unwind-user-regs.exp @@ -47,7 +47,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { # Skip all tests if Python scripting is not enabled. if { [skip_python_tests] } { continue } -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-unwind.exp b/gdb/testsuite/gdb.python/py-unwind.exp index 798e765..515e1c0 100644 --- a/gdb/testsuite/gdb.python/py-unwind.exp +++ b/gdb/testsuite/gdb.python/py-unwind.exp @@ -37,7 +37,7 @@ if { ![istarget x86_64-*-* ] || ![is_lp64_target] } { continue } # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp index b88c451..c04c98d 100644 --- a/gdb/testsuite/gdb.python/py-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -415,7 +415,7 @@ proc test_subscript_regression {exefile lang} { # Start with a fresh gdb. clean_restart ${exefile} - if ![runto_main ] then { + if {![runto_main]} { perror "couldn't run to breakpoint" return } @@ -652,7 +652,7 @@ test_add_to_history # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 48ff07e..15ec525 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -217,7 +217,7 @@ clean_restart ${testfile} # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } @@ -431,7 +431,7 @@ clean_restart ${testfile} # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } @@ -486,7 +486,7 @@ clean_restart ${testfile} # The following tests require execution. -if ![runto_main] then { +if {![runto_main]} { return 0 } |