diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-30 11:52:21 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-30 15:27:39 -0400 |
commit | 4dfef5be6812dd7abfbc8f18e9c0384f2522b511 (patch) | |
tree | 90aa986d915c17f2320655298e2799d3a2cd1841 /gdb | |
parent | 2fed9db40b1179f62c6fb0f2cacfb0db6b50af46 (diff) | |
download | gdb-4dfef5be6812dd7abfbc8f18e9c0384f2522b511.zip gdb-4dfef5be6812dd7abfbc8f18e9c0384f2522b511.tar.gz gdb-4dfef5be6812dd7abfbc8f18e9c0384f2522b511.tar.bz2 |
gdb/testsuite: make runto_main not pass no-message to runto
As follow-up to this discussion:
https://sourceware.org/pipermail/gdb-patches/2020-August/171385.html
... make runto_main not pass no-message to runto. This means that if we
fail to run to main, for some reason, we'll emit a FAIL. This is the
behavior we want the majority of (if not all) the time.
Without this, we rely on tests logging a failure if runto_main fails,
otherwise. They do so in a very inconsisteny mannet, sometimes using
"fail", "unsupported" or "untested". The messages also vary widly.
This patch removes all these messages as well.
Also, remove a few "fail" where we call runto (and not runto_main). by
default (without an explicit no-message argument), runto prints a
failure already. In two places, gdb.multi/multi-re-run.exp and
gdb.python/py-pp-registration.exp, remove "message" passed to runto.
This removes a few PASSes that we don't care about (but FAILs will still
be printed if we fail to run to where we want to). This aligns their
behavior with the rest of the testsuite.
Change-Id: Ib763c98c5f4fb6898886b635210d7c34bd4b9023
Diffstat (limited to 'gdb')
598 files changed, 75 insertions, 784 deletions
diff --git a/gdb/testsuite/gdb.ada/array_return.exp b/gdb/testsuite/gdb.ada/array_return.exp index aceb5fd..9b2800d 100644 --- a/gdb/testsuite/gdb.ada/array_return.exp +++ b/gdb/testsuite/gdb.ada/array_return.exp @@ -28,7 +28,6 @@ clean_restart ${testfile} # Start the inferior if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/bp_inlined_func.exp b/gdb/testsuite/gdb.ada/bp_inlined_func.exp index 4d30423..bc25397 100644 --- a/gdb/testsuite/gdb.ada/bp_inlined_func.exp +++ b/gdb/testsuite/gdb.ada/bp_inlined_func.exp @@ -26,7 +26,6 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/catch_assert_if.exp b/gdb/testsuite/gdb.ada/catch_assert_if.exp index e6f4d2d..f469658 100644 --- a/gdb/testsuite/gdb.ada/catch_assert_if.exp +++ b/gdb/testsuite/gdb.ada/catch_assert_if.exp @@ -33,7 +33,6 @@ set eol "\[\r\n\]+" set sp "\[ \t\]*" if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } @@ -62,7 +61,6 @@ gdb_test_multiple "catch exception" $msg { # - continue, the program exits. if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/catch_ex.exp b/gdb/testsuite/gdb.ada/catch_ex.exp index 12e0f68..736e490 100644 --- a/gdb/testsuite/gdb.ada/catch_ex.exp +++ b/gdb/testsuite/gdb.ada/catch_ex.exp @@ -41,7 +41,6 @@ set catch_exception_info \ #################################### if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } @@ -90,7 +89,6 @@ gdb_test "continue" \ # - continue, the program exits. if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } @@ -151,7 +149,6 @@ gdb_test "continue" \ # the program. if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/excep_handle.exp b/gdb/testsuite/gdb.ada/excep_handle.exp index 990585c..5760c53 100644 --- a/gdb/testsuite/gdb.ada/excep_handle.exp +++ b/gdb/testsuite/gdb.ada/excep_handle.exp @@ -45,7 +45,6 @@ set catchpoint_storage_error_msg \ ############################################ if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/info_auto_lang.exp b/gdb/testsuite/gdb.ada/info_auto_lang.exp index 0ff10537..41c4d7c 100644 --- a/gdb/testsuite/gdb.ada/info_auto_lang.exp +++ b/gdb/testsuite/gdb.ada/info_auto_lang.exp @@ -46,7 +46,6 @@ clean_restart ${testfile} set bp_location [gdb_get_line_number "STOP" ${testdir}/some_c.c] if ![runto "some_c.c:$bp_location"] then { - fail "can't run to some_c.c STOP location" return } diff --git a/gdb/testsuite/gdb.ada/info_exc.exp b/gdb/testsuite/gdb.ada/info_exc.exp index 56e527f..c8dc074 100644 --- a/gdb/testsuite/gdb.ada/info_exc.exp +++ b/gdb/testsuite/gdb.ada/info_exc.exp @@ -26,7 +26,6 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_catch_assert.exp b/gdb/testsuite/gdb.ada/mi_catch_assert.exp index d00573a..0803d19 100644 --- a/gdb/testsuite/gdb.ada/mi_catch_assert.exp +++ b/gdb/testsuite/gdb.ada/mi_catch_assert.exp @@ -35,7 +35,6 @@ set sp "\[ \t\]*" clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } @@ -71,7 +70,6 @@ mi_clean_restart $binfile # - continue, the program exits. if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_catch_ex.exp b/gdb/testsuite/gdb.ada/mi_catch_ex.exp index a4c58fb..1b7c580 100644 --- a/gdb/testsuite/gdb.ada/mi_catch_ex.exp +++ b/gdb/testsuite/gdb.ada/mi_catch_ex.exp @@ -35,7 +35,6 @@ set eol "\[\r\n\]+" clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } @@ -66,7 +65,6 @@ mi_clean_restart $binfile with_test_prefix "scenario 1" { if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } } @@ -125,7 +123,6 @@ continue_to_exception \ with_test_prefix "scenario 2" { mi_delete_breakpoints if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } } diff --git a/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp b/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp index 57ec628..655b087 100644 --- a/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp +++ b/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp @@ -34,7 +34,6 @@ set eol "\[\r\n\]+" clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } @@ -65,7 +64,6 @@ mi_clean_restart $binfile with_test_prefix "scenario 1" { if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } } @@ -118,7 +116,6 @@ continue_to_exception_handler \ with_test_prefix "scenario 2" { mi_delete_breakpoints if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } } diff --git a/gdb/testsuite/gdb.ada/mi_dyn_arr.exp b/gdb/testsuite/gdb.ada/mi_dyn_arr.exp index 34cfbe6..d796f55 100644 --- a/gdb/testsuite/gdb.ada/mi_dyn_arr.exp +++ b/gdb/testsuite/gdb.ada/mi_dyn_arr.exp @@ -29,7 +29,6 @@ set MIFLAGS "-i=mi" mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_ex_cond.exp b/gdb/testsuite/gdb.ada/mi_ex_cond.exp index 3390354..8aa9eb9 100644 --- a/gdb/testsuite/gdb.ada/mi_ex_cond.exp +++ b/gdb/testsuite/gdb.ada/mi_ex_cond.exp @@ -35,7 +35,6 @@ set eol "\[\r\n\]+" clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_exc_info.exp b/gdb/testsuite/gdb.ada/mi_exc_info.exp index c9290c5..af471cf 100644 --- a/gdb/testsuite/gdb.ada/mi_exc_info.exp +++ b/gdb/testsuite/gdb.ada/mi_exc_info.exp @@ -29,7 +29,6 @@ set MIFLAGS "-i=mi" mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_interface.exp b/gdb/testsuite/gdb.ada/mi_interface.exp index 13e0d8d..df38582 100644 --- a/gdb/testsuite/gdb.ada/mi_interface.exp +++ b/gdb/testsuite/gdb.ada/mi_interface.exp @@ -29,7 +29,6 @@ set MIFLAGS "-i=mi" mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_prot.exp b/gdb/testsuite/gdb.ada/mi_prot.exp index 8936a6c..57f54dc 100644 --- a/gdb/testsuite/gdb.ada/mi_prot.exp +++ b/gdb/testsuite/gdb.ada/mi_prot.exp @@ -33,7 +33,6 @@ set MIFLAGS "-i=mi" mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_ref_changeable.exp b/gdb/testsuite/gdb.ada/mi_ref_changeable.exp index 0fd5899..09f7c02 100644 --- a/gdb/testsuite/gdb.ada/mi_ref_changeable.exp +++ b/gdb/testsuite/gdb.ada/mi_ref_changeable.exp @@ -29,7 +29,6 @@ set MIFLAGS "-i=mi" mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_string_access.exp b/gdb/testsuite/gdb.ada/mi_string_access.exp index 89026e3..75e5d5b 100644 --- a/gdb/testsuite/gdb.ada/mi_string_access.exp +++ b/gdb/testsuite/gdb.ada/mi_string_access.exp @@ -32,7 +32,6 @@ foreach_with_prefix scenario {all minimal} { mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_task_arg.exp b/gdb/testsuite/gdb.ada/mi_task_arg.exp index c8a7465..754d93f 100644 --- a/gdb/testsuite/gdb.ada/mi_task_arg.exp +++ b/gdb/testsuite/gdb.ada/mi_task_arg.exp @@ -39,7 +39,6 @@ mi_gdb_load ${binfile} mi_gdb_test "-gdb-set debug-file-directory \"\"" ".*" if ![mi_runto "task_switch.break_me"] then { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_task_info.exp b/gdb/testsuite/gdb.ada/mi_task_info.exp index a7d97b0..83ecb82 100644 --- a/gdb/testsuite/gdb.ada/mi_task_info.exp +++ b/gdb/testsuite/gdb.ada/mi_task_info.exp @@ -40,7 +40,6 @@ mi_gdb_load ${binfile} #################################### if ![mi_runto "task_switch.break_me"] then { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_var_access.exp b/gdb/testsuite/gdb.ada/mi_var_access.exp index 92b51f9..c489949 100644 --- a/gdb/testsuite/gdb.ada/mi_var_access.exp +++ b/gdb/testsuite/gdb.ada/mi_var_access.exp @@ -31,7 +31,6 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != "" } { mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_var_array.exp b/gdb/testsuite/gdb.ada/mi_var_array.exp index e0529fb..f9f3e3f 100644 --- a/gdb/testsuite/gdb.ada/mi_var_array.exp +++ b/gdb/testsuite/gdb.ada/mi_var_array.exp @@ -35,7 +35,6 @@ foreach_with_prefix scenario {none all minimal} { mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_var_union.exp b/gdb/testsuite/gdb.ada/mi_var_union.exp index c550f29..bb32dc8 100644 --- a/gdb/testsuite/gdb.ada/mi_var_union.exp +++ b/gdb/testsuite/gdb.ada/mi_var_union.exp @@ -37,7 +37,6 @@ foreach_with_prefix scenario {none all minimal} { mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.ada/mi_variant.exp b/gdb/testsuite/gdb.ada/mi_variant.exp index a9d5d8a..850abf9 100644 --- a/gdb/testsuite/gdb.ada/mi_variant.exp +++ b/gdb/testsuite/gdb.ada/mi_variant.exp @@ -36,7 +36,6 @@ foreach_with_prefix scenario {none all minimal} { mi_clean_restart $binfile if {[mi_runto_main] < 0} { - fail "cannot run to main, testcase aborted" return 0 } diff --git a/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp b/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp index 1a35cef..01d6871 100644 --- a/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp +++ b/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp @@ -29,7 +29,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp b/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp index 235f12e..3097fdf 100644 --- a/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp +++ b/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp @@ -29,7 +29,6 @@ if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} { } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/aarch64-fp.exp b/gdb/testsuite/gdb.arch/aarch64-fp.exp index 4fb8e34..5e44b2a 100644 --- a/gdb/testsuite/gdb.arch/aarch64-fp.exp +++ b/gdb/testsuite/gdb.arch/aarch64-fp.exp @@ -29,7 +29,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/aarch64-mte.exp b/gdb/testsuite/gdb.arch/aarch64-mte.exp index 62dfc86..21dc9b6 100644 --- a/gdb/testsuite/gdb.arch/aarch64-mte.exp +++ b/gdb/testsuite/gdb.arch/aarch64-mte.exp @@ -54,7 +54,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] { - untested "could not run to main" return -1 } @@ -339,7 +338,6 @@ gdb_test "continue" \ # Restart to execute the async tag fault test. with_test_prefix "async" { if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/aarch64-pauth.exp b/gdb/testsuite/gdb.arch/aarch64-pauth.exp index 6fbf6fa..9a76b61 100644 --- a/gdb/testsuite/gdb.arch/aarch64-pauth.exp +++ b/gdb/testsuite/gdb.arch/aarch64-pauth.exp @@ -32,7 +32,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} ${compile_f } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/aarch64-prologue.exp b/gdb/testsuite/gdb.arch/aarch64-prologue.exp index e871cc0..dd55b30 100644 --- a/gdb/testsuite/gdb.arch/aarch64-prologue.exp +++ b/gdb/testsuite/gdb.arch/aarch64-prologue.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp b/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp index ea1c568..29f23e7 100644 --- a/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp +++ b/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp @@ -36,7 +36,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} ${compile_f } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp b/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp index d8620c0..c9bc9cc 100644 --- a/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp +++ b/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/alpha-step.exp b/gdb/testsuite/gdb.arch/alpha-step.exp index 6f2d78b..a5385d1 100644 --- a/gdb/testsuite/gdb.arch/alpha-step.exp +++ b/gdb/testsuite/gdb.arch/alpha-step.exp @@ -38,7 +38,6 @@ proc test_stepi {function } { # of the previous tests, this makes sure that it doesn't affect # this series of tests. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/altivec-abi.exp b/gdb/testsuite/gdb.arch/altivec-abi.exp index f130699..24e3eb3 100644 --- a/gdb/testsuite/gdb.arch/altivec-abi.exp +++ b/gdb/testsuite/gdb.arch/altivec-abi.exp @@ -62,7 +62,6 @@ proc altivec_abi_tests { extra_flags force_abi } { # Run to `main' where we begin our tests. if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/altivec-regs.exp b/gdb/testsuite/gdb.arch/altivec-regs.exp index 620b0f7..d0f27e2 100644 --- a/gdb/testsuite/gdb.arch/altivec-regs.exp +++ b/gdb/testsuite/gdb.arch/altivec-regs.exp @@ -58,7 +58,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp index 5a902b5..852eca0 100644 --- a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp +++ b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/amd64-byte.exp b/gdb/testsuite/gdb.arch/amd64-byte.exp index 91c4c97..7187c21 100644 --- a/gdb/testsuite/gdb.arch/amd64-byte.exp +++ b/gdb/testsuite/gdb.arch/amd64-byte.exp @@ -38,7 +38,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp index 469c6f4..73bbd1b 100644 --- a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp @@ -43,7 +43,6 @@ gdb_test "set displaced-stepping on" "" gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*" if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step.exp b/gdb/testsuite/gdb.arch/amd64-disp-step.exp index 7984d91..f30f29e 100644 --- a/gdb/testsuite/gdb.arch/amd64-disp-step.exp +++ b/gdb/testsuite/gdb.arch/amd64-disp-step.exp @@ -36,7 +36,6 @@ gdb_test "set displaced-stepping on" "" gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*" if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/amd64-dword.exp b/gdb/testsuite/gdb.arch/amd64-dword.exp index 3d60f07..920ec5a 100644 --- a/gdb/testsuite/gdb.arch/amd64-dword.exp +++ b/gdb/testsuite/gdb.arch/amd64-dword.exp @@ -38,7 +38,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/amd64-gs_base.exp b/gdb/testsuite/gdb.arch/amd64-gs_base.exp index 0719269..136b95a 100644 --- a/gdb/testsuite/gdb.arch/amd64-gs_base.exp +++ b/gdb/testsuite/gdb.arch/amd64-gs_base.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp index 1a74869..195cc01 100644 --- a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp +++ b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp @@ -46,7 +46,6 @@ proc_with_prefix check_x87_regs_around_init {} { # Get things started. if ![runto_main] then { - fail "can't run to main" return 0 } @@ -121,7 +120,6 @@ proc_with_prefix check_setting_mxcsr_before_enable {} { clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } @@ -156,7 +154,6 @@ proc_with_prefix check_setting_x87_regs_before_enable {} { clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp index 7338dfe..d7e74db 100644 --- a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp +++ b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp @@ -21,7 +21,6 @@ if { ![istarget "x86_64-*-*"] || ![is_lp64_target] } { proc test_probe { probe_name } { with_test_prefix "probe: ${probe_name}" { if { ![runto "-pstap $probe_name"] } { - fail "run to probe $probe_name" return } diff --git a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp index 3009b5c..62bd488 100644 --- a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp +++ b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { proc goto_probe { probe_name } { if { ![runto "-pstap $probe_name"] } { - fail "run to probe $probe_name" return } } diff --git a/gdb/testsuite/gdb.arch/amd64-word.exp b/gdb/testsuite/gdb.arch/amd64-word.exp index 0297864..ed7f0f3 100644 --- a/gdb/testsuite/gdb.arch/amd64-word.exp +++ b/gdb/testsuite/gdb.arch/amd64-word.exp @@ -38,7 +38,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp index abc3487..3794f99 100644 --- a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp +++ b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { } if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/arc-decode-insn.exp b/gdb/testsuite/gdb.arch/arc-decode-insn.exp index 73d3fc4..17b11f3 100644 --- a/gdb/testsuite/gdb.arch/arc-decode-insn.exp +++ b/gdb/testsuite/gdb.arch/arc-decode-insn.exp @@ -43,7 +43,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { } if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp b/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp index eb013b9..14121bc 100644 --- a/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp +++ b/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp @@ -25,7 +25,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile ]} { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/arm-disp-step.exp b/gdb/testsuite/gdb.arch/arm-disp-step.exp index b082bb3..f4cd26a 100644 --- a/gdb/testsuite/gdb.arch/arm-disp-step.exp +++ b/gdb/testsuite/gdb.arch/arm-disp-step.exp @@ -410,7 +410,6 @@ proc test_add_rn_pc {} { gdb_test_no_output "set displaced-stepping off" if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/arm-neon.exp b/gdb/testsuite/gdb.arch/arm-neon.exp index ed34f5d..75ccd27 100644 --- a/gdb/testsuite/gdb.arch/arm-neon.exp +++ b/gdb/testsuite/gdb.arch/arm-neon.exp @@ -32,7 +32,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug quie } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp b/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp index 44e9dd9..49208e8 100644 --- a/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp +++ b/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp @@ -30,7 +30,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/e500-abi.exp b/gdb/testsuite/gdb.arch/e500-abi.exp index cbe9e9b..21333b6 100644 --- a/gdb/testsuite/gdb.arch/e500-abi.exp +++ b/gdb/testsuite/gdb.arch/e500-abi.exp @@ -46,7 +46,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/e500-regs.exp b/gdb/testsuite/gdb.arch/e500-regs.exp index 59926f5..c3d4038 100644 --- a/gdb/testsuite/gdb.arch/e500-regs.exp +++ b/gdb/testsuite/gdb.arch/e500-regs.exp @@ -45,7 +45,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } @@ -146,7 +145,6 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp b/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp index 8f4e34b..00c7acc 100644 --- a/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp +++ b/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp @@ -27,7 +27,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -51,7 +50,6 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ clean_restart ${executable} if ![runto_main] { - fail "can't run to main for ftrace tests" return 0 } diff --git a/gdb/testsuite/gdb.arch/gdb1291.exp b/gdb/testsuite/gdb.arch/gdb1291.exp index ea15162..a6097b8 100644 --- a/gdb/testsuite/gdb.arch/gdb1291.exp +++ b/gdb/testsuite/gdb.arch/gdb1291.exp @@ -47,7 +47,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/gdb1431.exp b/gdb/testsuite/gdb.arch/gdb1431.exp index 01cbea8..464a888 100644 --- a/gdb/testsuite/gdb.arch/gdb1431.exp +++ b/gdb/testsuite/gdb.arch/gdb1431.exp @@ -49,7 +49,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/i386-avx.exp b/gdb/testsuite/gdb.arch/i386-avx.exp index 93e86ee..1b61a65 100644 --- a/gdb/testsuite/gdb.arch/i386-avx.exp +++ b/gdb/testsuite/gdb.arch/i386-avx.exp @@ -48,7 +48,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } @@ -101,7 +100,6 @@ with_test_prefix "force-disable xml descriptions" { } if ![runto_main] then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.arch/i386-avx512.exp b/gdb/testsuite/gdb.arch/i386-avx512.exp index c801206..74ad9a1 100644 --- a/gdb/testsuite/gdb.arch/i386-avx512.exp +++ b/gdb/testsuite/gdb.arch/i386-avx512.exp @@ -34,7 +34,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-byte.exp b/gdb/testsuite/gdb.arch/i386-byte.exp index aa1096a..4b68f02 100644 --- a/gdb/testsuite/gdb.arch/i386-byte.exp +++ b/gdb/testsuite/gdb.arch/i386-byte.exp @@ -38,7 +38,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/i386-disp-step.exp b/gdb/testsuite/gdb.arch/i386-disp-step.exp index 560bf96..f48f3b2 100644 --- a/gdb/testsuite/gdb.arch/i386-disp-step.exp +++ b/gdb/testsuite/gdb.arch/i386-disp-step.exp @@ -33,7 +33,6 @@ gdb_test "set displaced-stepping on" "" gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*" if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/i386-dr3-watch.exp b/gdb/testsuite/gdb.arch/i386-dr3-watch.exp index 22d98c3..a3745b7 100644 --- a/gdb/testsuite/gdb.arch/i386-dr3-watch.exp +++ b/gdb/testsuite/gdb.arch/i386-dr3-watch.exp @@ -30,7 +30,6 @@ if [prepare_for_testing "failed to prepare" ${binfile} ${srcfile} {debug $additi } if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-float.exp b/gdb/testsuite/gdb.arch/i386-float.exp index 0860269..b96ff2b 100644 --- a/gdb/testsuite/gdb.arch/i386-float.exp +++ b/gdb/testsuite/gdb.arch/i386-float.exp @@ -33,7 +33,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile [list debug nop } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/i386-mpx-call.exp b/gdb/testsuite/gdb.arch/i386-mpx-call.exp index 360cc68..6798079 100644 --- a/gdb/testsuite/gdb.arch/i386-mpx-call.exp +++ b/gdb/testsuite/gdb.arch/i386-mpx-call.exp @@ -38,7 +38,6 @@ if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-mpx-map.exp b/gdb/testsuite/gdb.arch/i386-mpx-map.exp index 55b70d1..9663174 100644 --- a/gdb/testsuite/gdb.arch/i386-mpx-map.exp +++ b/gdb/testsuite/gdb.arch/i386-mpx-map.exp @@ -40,7 +40,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-mpx-sigsegv.exp b/gdb/testsuite/gdb.arch/i386-mpx-sigsegv.exp index ef8fd68..43d18a6 100644 --- a/gdb/testsuite/gdb.arch/i386-mpx-sigsegv.exp +++ b/gdb/testsuite/gdb.arch/i386-mpx-sigsegv.exp @@ -40,7 +40,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-mpx-simple_segv.exp b/gdb/testsuite/gdb.arch/i386-mpx-simple_segv.exp index e5b2a89..a5d9946 100644 --- a/gdb/testsuite/gdb.arch/i386-mpx-simple_segv.exp +++ b/gdb/testsuite/gdb.arch/i386-mpx-simple_segv.exp @@ -46,7 +46,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![runto_main] { - untested "could not run to main" return -1 } @@ -64,7 +63,6 @@ set segv_with_exit "Program received signal SIGSEGV,\ set parameters "print pass stop" with_test_prefix "$parameters" { if ![runto_main] { - fail "could not run to main" return -1 } @@ -84,7 +82,6 @@ with_test_prefix "$parameters" { set parameters "print pass nostop" with_test_prefix "$parameters" { if ![runto_main] { - fail "could not run to main" return -1 } @@ -103,7 +100,6 @@ with_test_prefix "$parameters" { set parameters "print nopass stop" with_test_prefix "$parameters" { if ![runto_main] { - fail "could not run to main" return -1 } @@ -123,7 +119,6 @@ with_test_prefix "$parameters" { set parameters "noprint pass nostop" with_test_prefix "$parameters" { if ![runto_main] { - fail "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-mpx.exp b/gdb/testsuite/gdb.arch/i386-mpx.exp index a6b74ce..520fd10 100644 --- a/gdb/testsuite/gdb.arch/i386-mpx.exp +++ b/gdb/testsuite/gdb.arch/i386-mpx.exp @@ -44,7 +44,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-pkru.exp b/gdb/testsuite/gdb.arch/i386-pkru.exp index 5732bba..f15e8ce 100644 --- a/gdb/testsuite/gdb.arch/i386-pkru.exp +++ b/gdb/testsuite/gdb.arch/i386-pkru.exp @@ -29,7 +29,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-prologue.exp b/gdb/testsuite/gdb.arch/i386-prologue.exp index 053c6d3..b3428ea 100644 --- a/gdb/testsuite/gdb.arch/i386-prologue.exp +++ b/gdb/testsuite/gdb.arch/i386-prologue.exp @@ -66,7 +66,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/i386-sse.exp b/gdb/testsuite/gdb.arch/i386-sse.exp index fca9025..1ee3a84 100644 --- a/gdb/testsuite/gdb.arch/i386-sse.exp +++ b/gdb/testsuite/gdb.arch/i386-sse.exp @@ -43,7 +43,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/i386-word.exp b/gdb/testsuite/gdb.arch/i386-word.exp index fc27c6b..101b75d 100644 --- a/gdb/testsuite/gdb.arch/i386-word.exp +++ b/gdb/testsuite/gdb.arch/i386-word.exp @@ -38,7 +38,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp index 2ecbac0..7be2205 100644 --- a/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp +++ b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp @@ -33,7 +33,6 @@ gdb_load ${binfile} # We need to start the inferior to place the breakpoints in the memory at all. if ![runto_main] { - untested start return -1 } diff --git a/gdb/testsuite/gdb.arch/iwmmxt-regs.exp b/gdb/testsuite/gdb.arch/iwmmxt-regs.exp index 92629d0..75ab890 100644 --- a/gdb/testsuite/gdb.arch/iwmmxt-regs.exp +++ b/gdb/testsuite/gdb.arch/iwmmxt-regs.exp @@ -41,7 +41,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/mips16-thunks.exp b/gdb/testsuite/gdb.arch/mips16-thunks.exp index bfa6b24..794942a 100644 --- a/gdb/testsuite/gdb.arch/mips16-thunks.exp +++ b/gdb/testsuite/gdb.arch/mips16-thunks.exp @@ -190,7 +190,6 @@ set options [list debug nowarnings] gdb_compile ${objfiles} ${binfile} executable ${options} clean_restart ${testname} if ![runto_main] then { - fail "running test program, MIPS16 thunk tests aborted" return } diff --git a/gdb/testsuite/gdb.arch/pa-nullify.exp b/gdb/testsuite/gdb.arch/pa-nullify.exp index 229206e..3e5ce14 100644 --- a/gdb/testsuite/gdb.arch/pa-nullify.exp +++ b/gdb/testsuite/gdb.arch/pa-nullify.exp @@ -89,7 +89,6 @@ proc get_addr_of_sym { sym } { } if ![runto_main] then { - fail "can't run to main" return 0 } @@ -126,7 +125,6 @@ proc test_core_bt { test } { set test "core at last insn in foo" if ![runto_main] then { - fail "can't run to main" return 0 } gdb_breakpoint "*$foo_last" @@ -137,7 +135,6 @@ if [gen_core $test] { set test "core at nullified insn" if ![runto_main] then { - fail "can't run to main" return 0 } gdb_breakpoint "*$foo_last" diff --git a/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp b/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp index 97335a5..bb9d55f 100644 --- a/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp +++ b/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp @@ -40,7 +40,6 @@ gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp b/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp index 5a72e61..76ae9b2 100644 --- a/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp +++ b/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp @@ -40,7 +40,6 @@ if {[build_executable "compile" $binfile $gen_src] == -1} { clean_restart $binfile if ![runto_main] then { - fail "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/powerpc-prologue.exp b/gdb/testsuite/gdb.arch/powerpc-prologue.exp index dcf56b2..a428ea2 100644 --- a/gdb/testsuite/gdb.arch/powerpc-prologue.exp +++ b/gdb/testsuite/gdb.arch/powerpc-prologue.exp @@ -44,7 +44,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp b/gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp index 7c4668e..7b01822 100644 --- a/gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp +++ b/gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp @@ -40,7 +40,6 @@ if {[build_executable "compile" $binfile $gen_src] == -1} { clean_restart $binfile if ![runto_main] then { - fail "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/powerpc64-prologue.exp b/gdb/testsuite/gdb.arch/powerpc64-prologue.exp index 4b01dec..ad962e2 100644 --- a/gdb/testsuite/gdb.arch/powerpc64-prologue.exp +++ b/gdb/testsuite/gdb.arch/powerpc64-prologue.exp @@ -38,7 +38,6 @@ if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \ # Run to `main' where we begin our tests. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp index 0a73660..36150e9 100644 --- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp +++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp @@ -37,7 +37,6 @@ proc do_test { displaced } { global decimal hex if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp index acda961..b9d3c65 100644 --- a/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp +++ b/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp @@ -41,7 +41,6 @@ proc do_test { displaced } { global gdb_prompt inferior_exited_re srcfile srcfile2 if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp b/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp index b90eb28..b70a1fb 100644 --- a/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp +++ b/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp index 65f68d6..74b9145 100644 --- a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp +++ b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp @@ -25,7 +25,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp b/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp index 63721ae..369d209 100644 --- a/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp +++ b/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp @@ -31,7 +31,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if { ![runto_main] } { - untested "failed to runto main" return -1 } diff --git a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp index ee5dea0..7bb100f 100644 --- a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp +++ b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp @@ -38,7 +38,6 @@ foreach_with_prefix {insn_size} {6 8} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp index f559c3f..b129704 100644 --- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp +++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp @@ -29,7 +29,6 @@ if {[prepare_for_testing "failed to prepare" $testfile \ } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/s390-tdbregs.exp b/gdb/testsuite/gdb.arch/s390-tdbregs.exp index 4b7704a..1ea7ca2 100644 --- a/gdb/testsuite/gdb.arch/s390-tdbregs.exp +++ b/gdb/testsuite/gdb.arch/s390-tdbregs.exp @@ -36,7 +36,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/s390-vregs.exp b/gdb/testsuite/gdb.arch/s390-vregs.exp index 97d11e0..2ef55df 100644 --- a/gdb/testsuite/gdb.arch/s390-vregs.exp +++ b/gdb/testsuite/gdb.arch/s390-vregs.exp @@ -35,7 +35,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/sparc64-adi.exp b/gdb/testsuite/gdb.arch/sparc64-adi.exp index 13abc0f..5c9b537 100644 --- a/gdb/testsuite/gdb.arch/sparc64-adi.exp +++ b/gdb/testsuite/gdb.arch/sparc64-adi.exp @@ -31,7 +31,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/sparc64-regs.exp b/gdb/testsuite/gdb.arch/sparc64-regs.exp index b568889..bf5dcb9 100644 --- a/gdb/testsuite/gdb.arch/sparc64-regs.exp +++ b/gdb/testsuite/gdb.arch/sparc64-regs.exp @@ -30,7 +30,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] then { - untested "could not run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/thumb-bx-pc.exp b/gdb/testsuite/gdb.arch/thumb-bx-pc.exp index cc81839..8980a41 100644 --- a/gdb/testsuite/gdb.arch/thumb-bx-pc.exp +++ b/gdb/testsuite/gdb.arch/thumb-bx-pc.exp @@ -29,7 +29,6 @@ if [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] { } if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/thumb-prologue.exp b/gdb/testsuite/gdb.arch/thumb-prologue.exp index 5cd9283..f8b1b61 100644 --- a/gdb/testsuite/gdb.arch/thumb-prologue.exp +++ b/gdb/testsuite/gdb.arch/thumb-prologue.exp @@ -40,7 +40,6 @@ gdb_load ${binfile} # if ![runto_main] then { - untested "ARM prologue tests" return -1 } diff --git a/gdb/testsuite/gdb.arch/thumb-singlestep.exp b/gdb/testsuite/gdb.arch/thumb-singlestep.exp index 2cc79ed..3f0ed12 100644 --- a/gdb/testsuite/gdb.arch/thumb-singlestep.exp +++ b/gdb/testsuite/gdb.arch/thumb-singlestep.exp @@ -29,7 +29,6 @@ if [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} [list debug $ } if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/thumb2-it.exp b/gdb/testsuite/gdb.arch/thumb2-it.exp index 1fa037f..6d34126 100644 --- a/gdb/testsuite/gdb.arch/thumb2-it.exp +++ b/gdb/testsuite/gdb.arch/thumb2-it.exp @@ -33,7 +33,6 @@ gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/vsx-regs.exp b/gdb/testsuite/gdb.arch/vsx-regs.exp index 44ed993..1cdf92d 100644 --- a/gdb/testsuite/gdb.arch/vsx-regs.exp +++ b/gdb/testsuite/gdb.arch/vsx-regs.exp @@ -53,7 +53,6 @@ gdb_load ${binfile} # Run to `main' where we begin our tests. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp b/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp index cefe43c..0eaddce 100644 --- a/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp +++ b/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp @@ -53,7 +53,6 @@ gdb_load ${binfile} # Run to `main' where we begin our tests. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp index 528e79f..25a8c80 100644 --- a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp +++ b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp @@ -30,7 +30,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if { ![runto_main] } { - unsupported "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp b/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp index 61cd189..a156cba 100644 --- a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp +++ b/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if { ![runto_main] } { - unsupported "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp b/gdb/testsuite/gdb.arch/x86-avx512fp16.exp index 22575cc..2e2c255 100644 --- a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp +++ b/gdb/testsuite/gdb.arch/x86-avx512fp16.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if { ![runto_main] } { - unsupported "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index d188c71..c4691ee 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -285,7 +285,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp b/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp index 60b6666..6190c07 100644 --- a/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp +++ b/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp @@ -34,7 +34,6 @@ proc_with_prefix until_advance_lineno_from_inlined {cmd} { global lineno if ![runto test] { - fail "can't run to test" return } @@ -55,7 +54,6 @@ proc_with_prefix until_advance_lineno_from_non_inlined {cmd} { global lineno if ![runto test] { - fail "can't run to test" return } @@ -71,7 +69,6 @@ proc_with_prefix until_advance_inline_func {cmd} { global lineno if ![runto test] { - fail "can't run to test" return } @@ -87,7 +84,6 @@ proc_with_prefix advance_overload {} { global lineno if ![runto test] { - fail "can't run to test" return } @@ -122,7 +118,6 @@ proc_with_prefix until_overload {} { global lineno if ![runto test] { - fail "can't run to test" return } diff --git a/gdb/testsuite/gdb.base/advance.exp b/gdb/testsuite/gdb.base/advance.exp index ad5d4c0..2486bb2 100644 --- a/gdb/testsuite/gdb.base/advance.exp +++ b/gdb/testsuite/gdb.base/advance.exp @@ -22,7 +22,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/annota-input-while-running.exp b/gdb/testsuite/gdb.base/annota-input-while-running.exp index 389cb64..4a49f9d 100644 --- a/gdb/testsuite/gdb.base/annota-input-while-running.exp +++ b/gdb/testsuite/gdb.base/annota-input-while-running.exp @@ -25,7 +25,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug] == -1} { # Because runto_main doesn't know how to handle the prompt with annotations, # run to main before we set the annotation level. if ![runto_main] then { - fail "can't run to main" return 1 } diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp index 3689f49..13c9a48 100644 --- a/gdb/testsuite/gdb.base/annota1.exp +++ b/gdb/testsuite/gdb.base/annota1.exp @@ -463,7 +463,6 @@ proc thread_test {} { gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.base/annotate-symlink.exp b/gdb/testsuite/gdb.base/annotate-symlink.exp index d02736d..2aaac0a 100644 --- a/gdb/testsuite/gdb.base/annotate-symlink.exp +++ b/gdb/testsuite/gdb.base/annotate-symlink.exp @@ -39,7 +39,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile} ${srcfilelink}" "${binfile}" \ clean_restart ${testfile} if {![runto_main]} { - unsupported "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/anon.exp b/gdb/testsuite/gdb.base/anon.exp index a271d28..f99e9b8 100644 --- a/gdb/testsuite/gdb.base/anon.exp +++ b/gdb/testsuite/gdb.base/anon.exp @@ -21,7 +21,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } { } if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.base/argv0-symlink.exp b/gdb/testsuite/gdb.base/argv0-symlink.exp index f55d986..ff928ef 100644 --- a/gdb/testsuite/gdb.base/argv0-symlink.exp +++ b/gdb/testsuite/gdb.base/argv0-symlink.exp @@ -54,7 +54,6 @@ with_test_prefix "file symlink" { clean_restart "$filelink" if ![runto_main] { - untested "could not run to main" return -1 } @@ -95,7 +94,6 @@ with_test_prefix "dir symlink" { clean_restart "$dirlink/$filelink" if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/asmlabel.exp b/gdb/testsuite/gdb.base/asmlabel.exp index 80e2ed8..67ed4be 100644 --- a/gdb/testsuite/gdb.base/asmlabel.exp +++ b/gdb/testsuite/gdb.base/asmlabel.exp @@ -38,7 +38,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/attach-wait-input.exp b/gdb/testsuite/gdb.base/attach-wait-input.exp index f190af1..abc42bf 100644 --- a/gdb/testsuite/gdb.base/attach-wait-input.exp +++ b/gdb/testsuite/gdb.base/attach-wait-input.exp @@ -48,7 +48,6 @@ proc start_program {binfile} { clean_restart $binfile if ![runto setup_done] then { - fail "can't run to setup_done" return 0 } diff --git a/gdb/testsuite/gdb.base/attach.exp b/gdb/testsuite/gdb.base/attach.exp index d6c5922..56b8747 100644 --- a/gdb/testsuite/gdb.base/attach.exp +++ b/gdb/testsuite/gdb.base/attach.exp @@ -493,7 +493,6 @@ proc_with_prefix test_command_line_attach_run {} { clean_restart $binfile if { ![runto_main] } { - fail "could not run to main" return } diff --git a/gdb/testsuite/gdb.base/auto-connect-native-target.exp b/gdb/testsuite/gdb.base/auto-connect-native-target.exp index 10cddc0..4f009b1 100644 --- a/gdb/testsuite/gdb.base/auto-connect-native-target.exp +++ b/gdb/testsuite/gdb.base/auto-connect-native-target.exp @@ -69,7 +69,6 @@ if { $topmost != "exec" } { # Check which target this board connects to. If testing with a native # target board, this should cause the native target to auto connect. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/auxv.exp b/gdb/testsuite/gdb.base/auxv.exp index d5e8c06..bbd2f64 100644 --- a/gdb/testsuite/gdb.base/auxv.exp +++ b/gdb/testsuite/gdb.base/auxv.exp @@ -57,7 +57,6 @@ if {$core_works} { } if ![runto_main] then { - fail "can't run to main" return 0 } set print_core_line [gdb_get_line_number "ABORT;"] diff --git a/gdb/testsuite/gdb.base/backtrace.exp b/gdb/testsuite/gdb.base/backtrace.exp index 2c063c2..4f574f4 100644 --- a/gdb/testsuite/gdb.base/backtrace.exp +++ b/gdb/testsuite/gdb.base/backtrace.exp @@ -22,7 +22,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/bigcore.exp b/gdb/testsuite/gdb.base/bigcore.exp index bac72f0..1ee8a6e 100644 --- a/gdb/testsuite/gdb.base/bigcore.exp +++ b/gdb/testsuite/gdb.base/bigcore.exp @@ -59,7 +59,6 @@ if {![is_remote host]} { } if ![runto_main] then { - fail "can't run to main" return 0 } set print_core_line [gdb_get_line_number "Dump core"] diff --git a/gdb/testsuite/gdb.base/break-idempotent.exp b/gdb/testsuite/gdb.base/break-idempotent.exp index 2b55130..08434f6 100644 --- a/gdb/testsuite/gdb.base/break-idempotent.exp +++ b/gdb/testsuite/gdb.base/break-idempotent.exp @@ -110,7 +110,6 @@ proc test_break { always_inserted break_command } { delete_breakpoints if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/break-main-file-remove-fail.exp b/gdb/testsuite/gdb.base/break-main-file-remove-fail.exp index 94ba1e3..9626a9d 100644 --- a/gdb/testsuite/gdb.base/break-main-file-remove-fail.exp +++ b/gdb/testsuite/gdb.base/break-main-file-remove-fail.exp @@ -56,7 +56,6 @@ proc test_remove_bp { initial_load } { set GDBFLAGS $saved_gdbflags if ![runto start] { - fail "can't run to start" return } diff --git a/gdb/testsuite/gdb.base/break-unload-file.exp b/gdb/testsuite/gdb.base/break-unload-file.exp index 4948ce3..2cbd0ac 100644 --- a/gdb/testsuite/gdb.base/break-unload-file.exp +++ b/gdb/testsuite/gdb.base/break-unload-file.exp @@ -60,7 +60,6 @@ proc test_break { initial_load always_inserted break_command } { set GDBFLAGS $saved_gdbflags if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp index c896a48..4885a5b 100644 --- a/gdb/testsuite/gdb.base/break.exp +++ b/gdb/testsuite/gdb.base/break.exp @@ -473,7 +473,9 @@ gdb_test "info break" "Num Type.*Disp Enb Address.*What.*\[\r\n\] # inappropriately. (There are no calls to those system functions # in this test program.) # -if ![runto_main] then { fail "break tests suppressed" } +if ![runto_main] then { + return +} gdb_test "catch fork" "Catchpoint \[0-9\]+ \\(fork\\)" \ "set catch fork, never expected to trigger" @@ -521,7 +523,9 @@ gdb_test "break" \ # Verify that a "silent" breakpoint can be set, and that GDB is indeed # "silent" about its triggering. # -if ![runto_main] then { fail "break tests suppressed" } +if ![runto_main] then { + return +} gdb_test_multiple "break $bp_location1" \ "set to-be-silent break bp_location1" { @@ -637,7 +641,9 @@ gdb_test_multiple "finish" "finish from called function" { # Verify that GDB responds gracefully to a "finish" command with # arguments. # -if ![runto_main] then { fail "break tests suppressed" } +if ![runto_main] then { + return +} send_gdb "finish 123\n" gdb_expect { diff --git a/gdb/testsuite/gdb.base/breakpoint-shadow.exp b/gdb/testsuite/gdb.base/breakpoint-shadow.exp index e36fb3b..aa985b5 100644 --- a/gdb/testsuite/gdb.base/breakpoint-shadow.exp +++ b/gdb/testsuite/gdb.base/breakpoint-shadow.exp @@ -21,7 +21,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { # We need to start the inferior to place the breakpoints in the memory at all. if ![runto_main] { - untested start return -1 } diff --git a/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp b/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp index d988cf7..a43a951 100644 --- a/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp +++ b/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { # Check we can run to main. If this works this time then we just # assume that it will work later on (when we repeatedly restart GDB). if ![runto_main] then { - untested "run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp b/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp index 8875d00..b0cde6e 100644 --- a/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp +++ b/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp @@ -35,7 +35,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { # Check we can run to main. If this works this time then we just # assume that it will work later on (when we repeatedly restart GDB). if ![runto_main] then { - untested $testfile return -1 } diff --git a/gdb/testsuite/gdb.base/bt-selected-frame.exp b/gdb/testsuite/gdb.base/bt-selected-frame.exp index c454f4c..56b888d 100644 --- a/gdb/testsuite/gdb.base/bt-selected-frame.exp +++ b/gdb/testsuite/gdb.base/bt-selected-frame.exp @@ -29,7 +29,6 @@ proc check_selected_frame_after_bt { bt_cmd stack_pattern } { with_test_prefix $bt_cmd { if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/call-signal-resume.exp b/gdb/testsuite/gdb.base/call-signal-resume.exp index 931aa9a..7218858 100644 --- a/gdb/testsuite/gdb.base/call-signal-resume.exp +++ b/gdb/testsuite/gdb.base/call-signal-resume.exp @@ -56,7 +56,6 @@ proc get_dummy_frame_number { } { clean_restart ${binfile} if { ![runto_main] } { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/callexit.exp b/gdb/testsuite/gdb.base/callexit.exp index 6a46a60..c787f41 100644 --- a/gdb/testsuite/gdb.base/callexit.exp +++ b/gdb/testsuite/gdb.base/callexit.exp @@ -33,7 +33,6 @@ if [target_info exists gdb,cannot_call_functions] { clean_restart ${binfile} if { ![runto_main] } { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/cast-call.exp b/gdb/testsuite/gdb.base/cast-call.exp index 96f84f1..444eb9c 100644 --- a/gdb/testsuite/gdb.base/cast-call.exp +++ b/gdb/testsuite/gdb.base/cast-call.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } { } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/catch-follow-exec.exp b/gdb/testsuite/gdb.base/catch-follow-exec.exp index a477002..fc74823 100644 --- a/gdb/testsuite/gdb.base/catch-follow-exec.exp +++ b/gdb/testsuite/gdb.base/catch-follow-exec.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } { proc catch_follow_exec { } { if { ![runto_main] } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/catch-fork-kill.exp b/gdb/testsuite/gdb.base/catch-fork-kill.exp index 1939160..0511349 100644 --- a/gdb/testsuite/gdb.base/catch-fork-kill.exp +++ b/gdb/testsuite/gdb.base/catch-fork-kill.exp @@ -58,7 +58,6 @@ proc do_test {fork_kind exit_kind} { clean_restart $testfile if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp b/gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp index 0124dd2..1e89371 100644 --- a/gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp +++ b/gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp @@ -36,7 +36,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] { - fail "can't run to main to make the tests" return -1 } diff --git a/gdb/testsuite/gdb.base/catch-load.exp b/gdb/testsuite/gdb.base/catch-load.exp index ece46cb..94d2971 100644 --- a/gdb/testsuite/gdb.base/catch-load.exp +++ b/gdb/testsuite/gdb.base/catch-load.exp @@ -53,7 +53,6 @@ proc one_catch_load_test {scenario kind match sostop} { gdb_load_shlib $binfile2 if {![runto_main]} { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp b/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp index e527d78..f16cbe5 100644 --- a/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp +++ b/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp @@ -42,7 +42,6 @@ if { [prepare_for_testing "failed to prepare" "${testfile}" $srcfile {debug}] } } if ![runto_main] then { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/catch-syscall.exp b/gdb/testsuite/gdb.base/catch-syscall.exp index d7183d1..811a92b 100644 --- a/gdb/testsuite/gdb.base/catch-syscall.exp +++ b/gdb/testsuite/gdb.base/catch-syscall.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing "failed to prepare" $testfile ${testfile}.c] } { # Check target supports catch syscall or not. if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/commands.exp b/gdb/testsuite/gdb.base/commands.exp index c2123ac..6785f95 100644 --- a/gdb/testsuite/gdb.base/commands.exp +++ b/gdb/testsuite/gdb.base/commands.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" commands run.c {debug additional_f proc runto_or_return {function} { if { ![runto factorial] } { - fail "cannot run to $function" return -code return } } diff --git a/gdb/testsuite/gdb.base/compare-sections.exp b/gdb/testsuite/gdb.base/compare-sections.exp index e788114..ba683c1 100644 --- a/gdb/testsuite/gdb.base/compare-sections.exp +++ b/gdb/testsuite/gdb.base/compare-sections.exp @@ -80,7 +80,6 @@ gdb_test_multiple $command $test { # Now get past startup code. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/complex-parts.exp b/gdb/testsuite/gdb.base/complex-parts.exp index 6385752..353ae1b 100644 --- a/gdb/testsuite/gdb.base/complex-parts.exp +++ b/gdb/testsuite/gdb.base/complex-parts.exp @@ -20,7 +20,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if { ![runto_main] } then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/cond-eval-mode.exp b/gdb/testsuite/gdb.base/cond-eval-mode.exp index dc81591..2d7b508 100644 --- a/gdb/testsuite/gdb.base/cond-eval-mode.exp +++ b/gdb/testsuite/gdb.base/cond-eval-mode.exp @@ -22,7 +22,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/condbreak-bad.exp b/gdb/testsuite/gdb.base/condbreak-bad.exp index 67d9f29..4bc523d 100644 --- a/gdb/testsuite/gdb.base/condbreak-bad.exp +++ b/gdb/testsuite/gdb.base/condbreak-bad.exp @@ -67,7 +67,6 @@ with_test_prefix "with run" { # deletes the breakpoints. with_test_prefix "with continue 1" { if {![runto_main]} { - fail "could not run to main" return -1 } @@ -88,7 +87,6 @@ with_test_prefix "with continue 1" { # Repeat with a condition that evaluates to false. with_test_prefix "with continue 2" { if {![runto_main]} { - fail "could not run to main" return -1 } @@ -109,7 +107,6 @@ with_test_prefix "with continue 2" { # Repeat with a condition that contains junk at the end. with_test_prefix "with junk" { if {![runto_main]} { - fail "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/condbreak-call-false.exp b/gdb/testsuite/gdb.base/condbreak-call-false.exp index c852e32..cef3810 100644 --- a/gdb/testsuite/gdb.base/condbreak-call-false.exp +++ b/gdb/testsuite/gdb.base/condbreak-call-false.exp @@ -23,7 +23,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/consecutive-step-over.exp b/gdb/testsuite/gdb.base/consecutive-step-over.exp index 3370579..3af83d9 100644 --- a/gdb/testsuite/gdb.base/consecutive-step-over.exp +++ b/gdb/testsuite/gdb.base/consecutive-step-over.exp @@ -25,7 +25,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp b/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp index 42ffb4a..65bfe4a 100644 --- a/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp +++ b/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp @@ -51,7 +51,6 @@ proc do_test {displaced breakpoint_always_inserted} { gdb_test_no_output "set breakpoint always-inserted $breakpoint_always_inserted" if ![runto_main] { - fail "run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/continue-all-already-running.exp b/gdb/testsuite/gdb.base/continue-all-already-running.exp index de84897..23cd992 100644 --- a/gdb/testsuite/gdb.base/continue-all-already-running.exp +++ b/gdb/testsuite/gdb.base/continue-all-already-running.exp @@ -26,7 +26,6 @@ save_vars { GDBFLAGS } { } if ![runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/coredump-filter-build-id.exp b/gdb/testsuite/gdb.base/coredump-filter-build-id.exp index a9012b8..76a3987 100644 --- a/gdb/testsuite/gdb.base/coredump-filter-build-id.exp +++ b/gdb/testsuite/gdb.base/coredump-filter-build-id.exp @@ -38,7 +38,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } { } if { ![runto_main] } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/coredump-filter.exp b/gdb/testsuite/gdb.base/coredump-filter.exp index 739ff09..fc1ee86 100644 --- a/gdb/testsuite/gdb.base/coredump-filter.exp +++ b/gdb/testsuite/gdb.base/coredump-filter.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } { } if { ![runto_main] } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/corefile2.exp b/gdb/testsuite/gdb.base/corefile2.exp index b97493b..78b9c42 100644 --- a/gdb/testsuite/gdb.base/corefile2.exp +++ b/gdb/testsuite/gdb.base/corefile2.exp @@ -175,7 +175,6 @@ with_test_prefix "renamed binfile" { clean_restart $binfile if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/ctxobj.exp b/gdb/testsuite/gdb.base/ctxobj.exp index 29969cc..0d1297d 100644 --- a/gdb/testsuite/gdb.base/ctxobj.exp +++ b/gdb/testsuite/gdb.base/ctxobj.exp @@ -59,7 +59,6 @@ gdb_load_shlib $libobj1 gdb_load_shlib $libobj2 if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/debug-expr.exp b/gdb/testsuite/gdb.base/debug-expr.exp index 77cf030..5669b6d 100644 --- a/gdb/testsuite/gdb.base/debug-expr.exp +++ b/gdb/testsuite/gdb.base/debug-expr.exp @@ -29,7 +29,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} { } if ![runto_main] { - fail "run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/decl-before-def.exp b/gdb/testsuite/gdb.base/decl-before-def.exp index 7f36010..d907e65 100644 --- a/gdb/testsuite/gdb.base/decl-before-def.exp +++ b/gdb/testsuite/gdb.base/decl-before-def.exp @@ -26,7 +26,6 @@ gdb_test "maint expand-symtabs" gdb_test "p a" { = \{1, 2\}} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/define.exp b/gdb/testsuite/gdb.base/define.exp index ff34e7f..0d69d52 100644 --- a/gdb/testsuite/gdb.base/define.exp +++ b/gdb/testsuite/gdb.base/define.exp @@ -30,7 +30,9 @@ if {[prepare_for_testing "failed to prepare" ${testfile} \ set bp_location1 [gdb_get_line_number "set breakpoint 1 here"] set bp_location11 [gdb_get_line_number "set breakpoint 11 here"] -if ![runto_main] then { fail "define tests suppressed" } +if ![runto_main] then { + return +} # Verify that GDB allows a user to define their very own commands. # diff --git a/gdb/testsuite/gdb.base/detach-sysroot-target.exp b/gdb/testsuite/gdb.base/detach-sysroot-target.exp index 9ae1eb6..18c579a 100644 --- a/gdb/testsuite/gdb.base/detach-sysroot-target.exp +++ b/gdb/testsuite/gdb.base/detach-sysroot-target.exp @@ -49,7 +49,6 @@ gdb_test_multiple "show sysroot" "" { } if ![runto_main] { - fail "couldn't run to main" return } diff --git a/gdb/testsuite/gdb.base/disabled-location.exp b/gdb/testsuite/gdb.base/disabled-location.exp index 12eb6b5..e3e0edc 100644 --- a/gdb/testsuite/gdb.base/disabled-location.exp +++ b/gdb/testsuite/gdb.base/disabled-location.exp @@ -20,7 +20,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile}] } { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/display.exp b/gdb/testsuite/gdb.base/display.exp index dac036f..b5e5a06 100644 --- a/gdb/testsuite/gdb.base/display.exp +++ b/gdb/testsuite/gdb.base/display.exp @@ -52,8 +52,7 @@ if !$use_gdb_stub { # Ok, on to real life # if ![runto_main] then { - fail "could not run to main - other tests will fail." - continue + return } # Disable hardware watchpoints if necessary. diff --git a/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp b/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp index 58a5560..61a11bb 100644 --- a/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp +++ b/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp @@ -31,7 +31,6 @@ proc test { style } { clean_restart $binfile if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/dprintf-detach.exp b/gdb/testsuite/gdb.base/dprintf-detach.exp index aa06a5b..ea4e23a 100644 --- a/gdb/testsuite/gdb.base/dprintf-detach.exp +++ b/gdb/testsuite/gdb.base/dprintf-detach.exp @@ -46,7 +46,6 @@ proc dprintf_detach_test { breakpoint_always_inserted dprintf_style disconnected gdb_test_no_output "set disconnected-dprintf ${disconnected_dprintf}" if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/dprintf-next.exp b/gdb/testsuite/gdb.base/dprintf-next.exp index 67588f8..5862843 100644 --- a/gdb/testsuite/gdb.base/dprintf-next.exp +++ b/gdb/testsuite/gdb.base/dprintf-next.exp @@ -25,7 +25,6 @@ if [prepare_for_testing "failed to prepare for dprintf with next" \ } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/dprintf-non-stop.exp b/gdb/testsuite/gdb.base/dprintf-non-stop.exp index 7133490..2e76799 100644 --- a/gdb/testsuite/gdb.base/dprintf-non-stop.exp +++ b/gdb/testsuite/gdb.base/dprintf-non-stop.exp @@ -27,7 +27,6 @@ save_vars { GDBFLAGS } { } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/dtrace-probe.exp b/gdb/testsuite/gdb.base/dtrace-probe.exp index febcf03..c6b58ba 100644 --- a/gdb/testsuite/gdb.base/dtrace-probe.exp +++ b/gdb/testsuite/gdb.base/dtrace-probe.exp @@ -63,12 +63,8 @@ proc dtrace_test {} { # Since test:progress-counter is disabled we can run to the second # instance of the test:two-locations probe. - if {![runto "-probe-dtrace test:two-locations"]} { - fail "run to the first test:two-locations probe point" - } - if {![runto "-probe-dtrace test:two-locations"]} { - fail "run to the second test:two-locations probe point" - } + runto "-probe-dtrace test:two-locations"] + runto "-probe-dtrace test:two-locations"] # Go back to the breakpoint on main() and enable the # test:progress-counter probe. Set a breakpoint on it and see diff --git a/gdb/testsuite/gdb.base/duplicate-bp.exp b/gdb/testsuite/gdb.base/duplicate-bp.exp index 5516925..b5e6905 100644 --- a/gdb/testsuite/gdb.base/duplicate-bp.exp +++ b/gdb/testsuite/gdb.base/duplicate-bp.exp @@ -27,7 +27,6 @@ proc test_setup { count } { clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/ena-dis-br.exp b/gdb/testsuite/gdb.base/ena-dis-br.exp index 964b152..a4adc8f 100644 --- a/gdb/testsuite/gdb.base/ena-dis-br.exp +++ b/gdb/testsuite/gdb.base/ena-dis-br.exp @@ -34,7 +34,9 @@ set bp_location14 [gdb_get_line_number "set breakpoint 14 here" $srcfile2] set bp_location15 [gdb_get_line_number "set breakpoint 15 here" $srcfile2] set bp_location17 [gdb_get_line_number "set breakpoint 17 here" $srcfile2] -if ![runto_main] then { fail "enable/disable break tests suppressed" } +if ![runto_main] then { + return +} # Verify that we can set a breakpoint (the location is irrelevant), # then enable it (yes, it's already enabled by default), then hit it. @@ -115,7 +117,7 @@ gdb_continue_to_end "no stop at auto-disabled break marker2" # Verify that we can set a breakpoint to be self-deleting after the # first time it triggers. if ![runto_main] then { - fail "enable/disable break tests suppressed" + return } set bp [break_at "marker3" " line $bp_location17"] @@ -146,7 +148,7 @@ gdb_test "info break $bp" \ "info break marker4" if ![runto_main] then { - fail "enable/disable break tests suppressed" + return } # Test enable count by stopping at a location until it is disabled @@ -185,7 +187,7 @@ gdb_test "continue" \ # a flavor of enablement/disablement, after all.) if ![runto_main] then { - fail "enable/disable break tests suppressed" + return } with_test_prefix "ignore count" { @@ -246,7 +248,7 @@ gdb_test_multiple "continue" "$test" { # Verify that we can specify both an ignore count and an auto-delete. if ![runto_main] then { - fail "enable/disable break tests suppressed" + return } with_test_prefix "ignore count and auto-delete" { @@ -278,7 +280,7 @@ gdb_test "continue" \ # the bp is encountered. if ![runto_main] then { - fail "enable/disable break tests suppressed" + return } with_test_prefix "disabled breakpoint ignore count" { @@ -306,7 +308,9 @@ gdb_test "info break $bp" \ # (Also verify that GDB gracefully handles the case where the inferior # isn't stopped at a breakpoint.) # -if ![runto_main] then { fail "enable/disable break tests suppressed" } +if ![runto_main] then { + return +} gdb_test "break $bp_location1" \ "Breakpoint \[0-9\]*.*, line $bp_location1.*" \ @@ -332,7 +336,9 @@ gdb_test_multiple "continue 2" "$test" { # Verify that GDB correctly handles the "enable/disable" command # with arguments, that include multiple locations. # -if ![runto_main] then { fail "enable/disable break tests suppressed" } +if ![runto_main] then { + return +} set b1 0 set b2 0 diff --git a/gdb/testsuite/gdb.base/endianity.exp b/gdb/testsuite/gdb.base/endianity.exp index 3489e34..f6ab0be 100644 --- a/gdb/testsuite/gdb.base/endianity.exp +++ b/gdb/testsuite/gdb.base/endianity.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ set bp_location [gdb_get_line_number "START"] if ![runto "endianity.c:$bp_location" ] then { - fail "couldn't run to start" return -1 } diff --git a/gdb/testsuite/gdb.base/examine-backward.exp b/gdb/testsuite/gdb.base/examine-backward.exp index b74e987..d4ad4a6 100644 --- a/gdb/testsuite/gdb.base/examine-backward.exp +++ b/gdb/testsuite/gdb.base/examine-backward.exp @@ -23,7 +23,6 @@ if { [prepare_for_testing "failed to prepare for examine-backward" \ } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/exec-invalid-sysroot.exp b/gdb/testsuite/gdb.base/exec-invalid-sysroot.exp index cd53e38..87de524 100644 --- a/gdb/testsuite/gdb.base/exec-invalid-sysroot.exp +++ b/gdb/testsuite/gdb.base/exec-invalid-sysroot.exp @@ -47,7 +47,6 @@ proc do_exec_sysroot_test {} { # Start the program running, and stop at main. # if ![runto_main] then { - fail "couldn't run ${testfile}" return } diff --git a/gdb/testsuite/gdb.base/execl-update-breakpoints.exp b/gdb/testsuite/gdb.base/execl-update-breakpoints.exp index f9cd7e8..429d891 100644 --- a/gdb/testsuite/gdb.base/execl-update-breakpoints.exp +++ b/gdb/testsuite/gdb.base/execl-update-breakpoints.exp @@ -55,7 +55,6 @@ if { [gdb_compile $objfile $exec1 executable $opts1_ld] != "" } { clean_restart ${exec1} if ![runto_main] then { - fail "couldn't run to main" return -1 } @@ -70,7 +69,6 @@ gdb_test_multiple "p/x &main" $test { clean_restart ${exec2} if ![runto_main] then { - fail "couldn't run to main" return -1 } @@ -103,7 +101,6 @@ proc test { always_inserted } { gdb_test_no_output "set breakpoint always-inserted $always_inserted" if ![runto_main] then { - fail "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/execution-termios.exp b/gdb/testsuite/gdb.base/execution-termios.exp index 5dc76fb..7a9dcea 100644 --- a/gdb/testsuite/gdb.base/execution-termios.exp +++ b/gdb/testsuite/gdb.base/execution-termios.exp @@ -25,7 +25,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { proc test { prefix body } { with_test_prefix $prefix { if ![runto_main] { - fail "can't run to main" return 0 } uplevel 1 $body diff --git a/gdb/testsuite/gdb.base/finish-pretty.exp b/gdb/testsuite/gdb.base/finish-pretty.exp index b2a40ce..f480bfb 100644 --- a/gdb/testsuite/gdb.base/finish-pretty.exp +++ b/gdb/testsuite/gdb.base/finish-pretty.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { proc finish_pretty { } { if ![runto foo] { - fail "can't run to foo" return } gdb_test_no_output "set print pretty" \ diff --git a/gdb/testsuite/gdb.base/finish.exp b/gdb/testsuite/gdb.base/finish.exp index 03baa86..3a9af1b 100644 --- a/gdb/testsuite/gdb.base/finish.exp +++ b/gdb/testsuite/gdb.base/finish.exp @@ -77,7 +77,6 @@ proc finish_void { } { proc finish_abbreviation { abbrev } { if { ! [ runto "int_func" ] } then { - fail "running to int_func" return -1 } @@ -91,7 +90,6 @@ proc finish_no_print {} { global decimal if {![runto "int_func"]} { - untested "couldn't run to main" return } gdb_test_no_output "set print finish off" @@ -105,7 +103,6 @@ proc finish_tests { } { global gdb_prompt skip_float_test if { ! [ runto_main ] } then { - untested "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/fixsection.exp b/gdb/testsuite/gdb.base/fixsection.exp index 7a9f39d..934e473 100644 --- a/gdb/testsuite/gdb.base/fixsection.exp +++ b/gdb/testsuite/gdb.base/fixsection.exp @@ -47,7 +47,6 @@ gdb_load ${binfile} gdb_load_shlib ${lib_sl} if ![runto_main] then { - fail "can't run to main" return 1 } diff --git a/gdb/testsuite/gdb.base/foll-exec-mode.exp b/gdb/testsuite/gdb.base/foll-exec-mode.exp index 9087c8b..7b7ce3a 100644 --- a/gdb/testsuite/gdb.base/foll-exec-mode.exp +++ b/gdb/testsuite/gdb.base/foll-exec-mode.exp @@ -69,7 +69,6 @@ proc do_catch_exec_test { } { # Start the program running, and stop at main. # if ![runto_main] then { - fail "couldn't run ${testfile}" return } @@ -109,7 +108,6 @@ proc do_follow_exec_mode_tests { mode cmd infswitch } { # Start the program running, and stop at main. # if ![runto_main] then { - fail "couldn't run ${testfile}" return } diff --git a/gdb/testsuite/gdb.base/foll-exec.exp b/gdb/testsuite/gdb.base/foll-exec.exp index 6d5e21f..26c8178 100644 --- a/gdb/testsuite/gdb.base/foll-exec.exp +++ b/gdb/testsuite/gdb.base/foll-exec.exp @@ -48,7 +48,6 @@ proc do_exec_tests {} { # Start the program running, and stop at main. # if ![runto_main] then { - fail "couldn't run ${testfile}" return } @@ -75,7 +74,6 @@ proc do_exec_tests {} { # Start the program running, and stop at main. # if ![runto_main] then { - fail "couldn't run ${testfile}" return } @@ -165,7 +163,6 @@ proc do_exec_tests {} { # Start the program running, and stop at main. # if ![runto_main] then { - fail "couldn't run ${testfile} (2nd try)" return } @@ -234,7 +231,6 @@ proc do_exec_tests {} { # Start the program running, and stop at main. # if ![runto_main] then { - fail "couldn't run ${testfile} (3rd try)" return } @@ -302,7 +298,6 @@ proc do_exec_tests {} { # Start the program running, and stop at main. # if ![runto_main] then { - fail "couldn't run ${testfile} (4th try)" return } @@ -364,7 +359,6 @@ proc do_exec_tests {} { # Start the program running, and stop at main. # if ![runto_main] then { - fail "couldn't run ${testfile} (5th try)" return } diff --git a/gdb/testsuite/gdb.base/foll-fork.exp b/gdb/testsuite/gdb.base/foll-fork.exp index d6d32f6..21993c5 100644 --- a/gdb/testsuite/gdb.base/foll-fork.exp +++ b/gdb/testsuite/gdb.base/foll-fork.exp @@ -32,7 +32,6 @@ proc setup {} { clean_restart $::testfile if { ![runto_main] } { - fail "could not run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/fork-running-state.exp b/gdb/testsuite/gdb.base/fork-running-state.exp index 2c362b0..e7fe5d2 100644 --- a/gdb/testsuite/gdb.base/fork-running-state.exp +++ b/gdb/testsuite/gdb.base/fork-running-state.exp @@ -36,7 +36,6 @@ proc do_test { detach_on_fork follow_fork non_stop schedule_multiple } { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/frame-info-consistent.exp b/gdb/testsuite/gdb.base/frame-info-consistent.exp index 0ff269a..93d804a 100644 --- a/gdb/testsuite/gdb.base/frame-info-consistent.exp +++ b/gdb/testsuite/gdb.base/frame-info-consistent.exp @@ -98,7 +98,6 @@ proc test {dwarf_unwinder} { gdb_test_no_output "maint set dwarf unwinder $dwarf_unwinder" if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/frameapply.exp b/gdb/testsuite/gdb.base/frameapply.exp index 346d229..9abbd48 100644 --- a/gdb/testsuite/gdb.base/frameapply.exp +++ b/gdb/testsuite/gdb.base/frameapply.exp @@ -25,7 +25,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile}] } { } if ![runto setup_done] then { - fail "can't run to setup_done" return 0 } diff --git a/gdb/testsuite/gdb.base/func-ptr.exp b/gdb/testsuite/gdb.base/func-ptr.exp index fda359e..a84ce1b 100644 --- a/gdb/testsuite/gdb.base/func-ptr.exp +++ b/gdb/testsuite/gdb.base/func-ptr.exp @@ -22,7 +22,6 @@ if { [prepare_for_testing "failed to prepare" "func-ptr" {func-ptr.c} {debug}] } } if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/func-ptrs.exp b/gdb/testsuite/gdb.base/func-ptrs.exp index ff1337f..b62a916 100644 --- a/gdb/testsuite/gdb.base/func-ptrs.exp +++ b/gdb/testsuite/gdb.base/func-ptrs.exp @@ -20,7 +20,6 @@ if { [prepare_for_testing "failed to prepare" ${testname} ${srcfile}] } { } if { ![runto_main] } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp index ca0d5e3..df9e5f3 100644 --- a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp +++ b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp @@ -35,7 +35,6 @@ gdb_test_no_output "set args ${pattern}" \ "set buffer exceeding arguments" if { ! [ runto_main ] } then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/gcore-relro-pie.exp b/gdb/testsuite/gdb.base/gcore-relro-pie.exp index 6c2bfc3..da657ac 100644 --- a/gdb/testsuite/gdb.base/gcore-relro-pie.exp +++ b/gdb/testsuite/gdb.base/gcore-relro-pie.exp @@ -42,7 +42,6 @@ clean_restart ${stripped_binfile} # The binary is stripped of debug info, but not minsyms. if ![runto break_here] { - fail "can't run to break_here" return -1 } diff --git a/gdb/testsuite/gdb.base/gcore-tls-pie.exp b/gdb/testsuite/gdb.base/gcore-tls-pie.exp index bb635cb..df93d88 100644 --- a/gdb/testsuite/gdb.base/gcore-tls-pie.exp +++ b/gdb/testsuite/gdb.base/gcore-tls-pie.exp @@ -46,7 +46,6 @@ clean_restart ${stripped_binfile} # The binary is stripped of debug info, but not minsyms. if ![runto break_here] { - fail "can't run to break_here" return -1 } diff --git a/gdb/testsuite/gdb.base/gcore.exp b/gdb/testsuite/gdb.base/gcore.exp index 22b46ce..42a1bae 100644 --- a/gdb/testsuite/gdb.base/gcore.exp +++ b/gdb/testsuite/gdb.base/gcore.exp @@ -24,7 +24,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if { ! [ runto_main ] } then { - untested "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/gdb1090.exp b/gdb/testsuite/gdb.base/gdb1090.exp index 2bc2293..ae3805f 100644 --- a/gdb/testsuite/gdb.base/gdb1090.exp +++ b/gdb/testsuite/gdb.base/gdb1090.exp @@ -29,7 +29,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 1 } diff --git a/gdb/testsuite/gdb.base/gdb11530.exp b/gdb/testsuite/gdb.base/gdb11530.exp index bf125d7..1974378 100644 --- a/gdb/testsuite/gdb.base/gdb11530.exp +++ b/gdb/testsuite/gdb.base/gdb11530.exp @@ -37,7 +37,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug}] } { if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.base/gdb11531.exp b/gdb/testsuite/gdb.base/gdb11531.exp index 31b9be7..35b5f9e 100644 --- a/gdb/testsuite/gdb.base/gdb11531.exp +++ b/gdb/testsuite/gdb.base/gdb11531.exp @@ -32,7 +32,6 @@ if [target_info exists gdb,no_hardware_watchpoints] { } if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.base/gdb1555.exp b/gdb/testsuite/gdb.base/gdb1555.exp index c6fafe3..21e8fd7 100644 --- a/gdb/testsuite/gdb.base/gdb1555.exp +++ b/gdb/testsuite/gdb.base/gdb1555.exp @@ -45,7 +45,6 @@ clean_restart ${binfile} gdb_load_shlib $libobj if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/gnu-ifunc.exp b/gdb/testsuite/gdb.base/gnu-ifunc.exp index 4ec5291..c822fc3 100644 --- a/gdb/testsuite/gdb.base/gnu-ifunc.exp +++ b/gdb/testsuite/gdb.base/gnu-ifunc.exp @@ -110,7 +110,6 @@ proc_with_prefix set-break {resolver_attr resolver_debug final_debug} { gdb_load_shlib ${lib_so} if ![runto_main] then { - fail "can't run to main" return 1 } @@ -233,7 +232,6 @@ proc misc_tests {resolver_attr resolver_debug final_debug} { gdb_load_shlib ${lib_so} if ![runto_main] then { - fail "can't run to main" return 1 } diff --git a/gdb/testsuite/gdb.base/gnu_vector.exp b/gdb/testsuite/gdb.base/gnu_vector.exp index 5254a39..83b3ceb 100644 --- a/gdb/testsuite/gdb.base/gnu_vector.exp +++ b/gdb/testsuite/gdb.base/gnu_vector.exp @@ -43,7 +43,6 @@ if { [do_compile {-mcpu=native}] != "" clean_restart ${binfile} if { ![runto_main] } { - fail "runto main" return -1 } diff --git a/gdb/testsuite/gdb.base/gold-gdb-index.exp b/gdb/testsuite/gdb.base/gold-gdb-index.exp index 1af756a..723cf48 100644 --- a/gdb/testsuite/gdb.base/gold-gdb-index.exp +++ b/gdb/testsuite/gdb.base/gold-gdb-index.exp @@ -35,7 +35,6 @@ if { [have_index $binfile] != "gdb_index" } { gdb_test_no_output "set auto-solib-add off" if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp b/gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp index 9bf4d99..182a649 100644 --- a/gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp +++ b/gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp @@ -44,7 +44,6 @@ clean_restart $binfile gdb_load_shlib $lib_so if ![runto_main] then { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/hbreak-unmapped.exp b/gdb/testsuite/gdb.base/hbreak-unmapped.exp index 29be3e1..22a4f72 100644 --- a/gdb/testsuite/gdb.base/hbreak-unmapped.exp +++ b/gdb/testsuite/gdb.base/hbreak-unmapped.exp @@ -24,7 +24,6 @@ if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} { } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/hbreak.exp b/gdb/testsuite/gdb.base/hbreak.exp index f152f27..bc4f51e 100644 --- a/gdb/testsuite/gdb.base/hbreak.exp +++ b/gdb/testsuite/gdb.base/hbreak.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${test} ${srcfile}] } { } if ![runto_main] { - untested ${test}.exp return -1 } diff --git a/gdb/testsuite/gdb.base/hbreak2.exp b/gdb/testsuite/gdb.base/hbreak2.exp index cedc151..fa339aa 100644 --- a/gdb/testsuite/gdb.base/hbreak2.exp +++ b/gdb/testsuite/gdb.base/hbreak2.exp @@ -25,7 +25,10 @@ if { [prepare_for_testing "failed to prepare" "hbreak2" {break.c break1.c} {debu set srcfile break.c set srcfile1 break1.c -if ![runto_main] then { fail "break tests suppressed" } +if ![runto_main] then { + return +} + delete_breakpoints # @@ -284,7 +287,9 @@ gdb_test "info break" \ #*********** -if ![runto_main] then { fail "break tests suppressed" } +if ![runto_main] then { + return +} # Verify that GDB responds gracefully when asked to set a breakpoint # on a nonexistent source line. @@ -310,7 +315,9 @@ gdb_test "hbreak" "Hardware assisted breakpoint \[0-9\]*.*" \ # Verify that a "silent" breakpoint can be set, and that GDB is indeed # "silent" about its triggering. # -if ![runto_main] then { fail "break tests suppressed" } +if ![runto_main] then { + return +} gdb_test_multiple "hbreak $bp_location1" \ "set to-be-silent hardware break bp_location1" { @@ -513,7 +520,10 @@ if { [prepare_for_testing "failed to prepare" "hbreak2o2" {break.c break1.c} {de return -1 } -if ![runto_main] then { fail "break tests suppressed" } +if ![runto_main] then { + return +} + delete_breakpoints # diff --git a/gdb/testsuite/gdb.base/hook-stop.exp b/gdb/testsuite/gdb.base/hook-stop.exp index df090f2..28abc90 100644 --- a/gdb/testsuite/gdb.base/hook-stop.exp +++ b/gdb/testsuite/gdb.base/hook-stop.exp @@ -40,7 +40,6 @@ proc setup {commands} { clean_restart $binfile if ![runto_main] then { - fail "can't run to main" return -code return } diff --git a/gdb/testsuite/gdb.base/huge.exp b/gdb/testsuite/gdb.base/huge.exp index a93a55a..712ea7a 100644 --- a/gdb/testsuite/gdb.base/huge.exp +++ b/gdb/testsuite/gdb.base/huge.exp @@ -43,7 +43,6 @@ set prev_timeout $timeout set timeout 30 if { ! [ runto_main ] } then { - untested "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp b/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp index faca5fd..dca0bdd 100644 --- a/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp +++ b/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp @@ -29,7 +29,6 @@ if { [prepare_for_testing "failed to prepare" ${test} ${srcfile}] } { } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/infcall-exec.exp b/gdb/testsuite/gdb.base/infcall-exec.exp index b19d31c..9502fd2 100644 --- a/gdb/testsuite/gdb.base/infcall-exec.exp +++ b/gdb/testsuite/gdb.base/infcall-exec.exp @@ -35,7 +35,6 @@ if {[gdb_compile $srcdir/$subdir/$srcfile2 $binfile2 executable debug] != ""} { clean_restart $binfile if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/infcall-input.exp b/gdb/testsuite/gdb.base/infcall-input.exp index fec0eb2..f85a37b 100644 --- a/gdb/testsuite/gdb.base/infcall-input.exp +++ b/gdb/testsuite/gdb.base/infcall-input.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/infcall-nested-structs.exp.tcl b/gdb/testsuite/gdb.base/infcall-nested-structs.exp.tcl index 0b44340..b267606 100644 --- a/gdb/testsuite/gdb.base/infcall-nested-structs.exp.tcl +++ b/gdb/testsuite/gdb.base/infcall-nested-structs.exp.tcl @@ -90,7 +90,6 @@ proc start_nested_structs_test { lang types } { # Advance to main if { ![runto_main] } then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/inferior-args.exp b/gdb/testsuite/gdb.base/inferior-args.exp index 3422995..0a5346c 100644 --- a/gdb/testsuite/gdb.base/inferior-args.exp +++ b/gdb/testsuite/gdb.base/inferior-args.exp @@ -103,7 +103,6 @@ proc do_test { method } { gdb_test_no_output "set args $inferior_args" if { ![runto_main] } { - fail "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/inferior-noarg.exp b/gdb/testsuite/gdb.base/inferior-noarg.exp index 65d23fe..93af66c 100644 --- a/gdb/testsuite/gdb.base/inferior-noarg.exp +++ b/gdb/testsuite/gdb.base/inferior-noarg.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" \ gdb_test "inferior" "\[Current inferior is 1 \[<null>\] (.*)\]" "inferior not running" if { ![runto_main] } { - untested "could not run to main" return } diff --git a/gdb/testsuite/gdb.base/info-fun.exp b/gdb/testsuite/gdb.base/info-fun.exp index 39d6b06..e610ec9 100644 --- a/gdb/testsuite/gdb.base/info-fun.exp +++ b/gdb/testsuite/gdb.base/info-fun.exp @@ -58,7 +58,6 @@ foreach_with_prefix n_flag { 0 1 } { clean_restart $executable if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp b/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp index b703bae..d97be0e 100644 --- a/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp +++ b/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp @@ -33,7 +33,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/info-macros.exp b/gdb/testsuite/gdb.base/info-macros.exp index f1d912a..57ed037 100644 --- a/gdb/testsuite/gdb.base/info-macros.exp +++ b/gdb/testsuite/gdb.base/info-macros.exp @@ -38,7 +38,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $options] } } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/info-os.exp b/gdb/testsuite/gdb.base/info-os.exp index c33b476..4b57efd 100644 --- a/gdb/testsuite/gdb.base/info-os.exp +++ b/gdb/testsuite/gdb.base/info-os.exp @@ -33,7 +33,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads } if ![runto_main] then { - fail "cannot run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/info-proc.exp b/gdb/testsuite/gdb.base/info-proc.exp index 9b0266a..074adbc 100644 --- a/gdb/testsuite/gdb.base/info-proc.exp +++ b/gdb/testsuite/gdb.base/info-proc.exp @@ -49,7 +49,6 @@ if { ! [use_gdb_stub] } { } if { ! [ runto_main ] } then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/info-program.exp b/gdb/testsuite/gdb.base/info-program.exp index ae059e3..bf94649 100644 --- a/gdb/testsuite/gdb.base/info-program.exp +++ b/gdb/testsuite/gdb.base/info-program.exp @@ -20,7 +20,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { } if { ![runto_main] } { - fail "can't run to main" return -1 } @@ -35,7 +34,6 @@ gdb_test "info program" "Program stopped at $hex\.\r\nIt stopped after being ste "info program after next" if { ![runto_main] } then { - fail "can't restart program" return -1 } diff --git a/gdb/testsuite/gdb.base/info-types.exp.tcl b/gdb/testsuite/gdb.base/info-types.exp.tcl index 20b54da..42dccf6 100644 --- a/gdb/testsuite/gdb.base/info-types.exp.tcl +++ b/gdb/testsuite/gdb.base/info-types.exp.tcl @@ -34,7 +34,6 @@ proc run_test { lang } { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/info_qt.exp b/gdb/testsuite/gdb.base/info_qt.exp index c6f242b..8f81cd2 100644 --- a/gdb/testsuite/gdb.base/info_qt.exp +++ b/gdb/testsuite/gdb.base/info_qt.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile}] } { } if ![runto setup_done] then { - fail "can't run to setup_done" return 0 } diff --git a/gdb/testsuite/gdb.base/info_sources.exp b/gdb/testsuite/gdb.base/info_sources.exp index a4f7d19..21752b8 100644 --- a/gdb/testsuite/gdb.base/info_sources.exp +++ b/gdb/testsuite/gdb.base/info_sources.exp @@ -57,7 +57,6 @@ proc test_info_sources {args expect_seen_info_sources expect_seen_info_sources_b } if ![runto_main] { - untested $testfile.exp return -1 } diff --git a/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp b/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp index 2801b68..df04ea0 100644 --- a/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp +++ b/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp @@ -59,7 +59,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} { if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/interp.exp b/gdb/testsuite/gdb.base/interp.exp index 6d485b6..fc95ee1 100644 --- a/gdb/testsuite/gdb.base/interp.exp +++ b/gdb/testsuite/gdb.base/interp.exp @@ -85,7 +85,6 @@ gdb_test_multiple $cmd $cmd { } if ![runto_main] then { - fail "run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/interrupt-daemon.exp b/gdb/testsuite/gdb.base/interrupt-daemon.exp index 2270ab0..0ff859c 100644 --- a/gdb/testsuite/gdb.base/interrupt-daemon.exp +++ b/gdb/testsuite/gdb.base/interrupt-daemon.exp @@ -33,7 +33,6 @@ proc do_test {} { gdb_test "set follow-fork-mode child" ".*" if ![runto "daemon_main"] { - fail "can't run to daemon_main function" return } diff --git a/gdb/testsuite/gdb.base/interrupt-noterm.exp b/gdb/testsuite/gdb.base/interrupt-noterm.exp index 5cfc617..3ba3280 100644 --- a/gdb/testsuite/gdb.base/interrupt-noterm.exp +++ b/gdb/testsuite/gdb.base/interrupt-noterm.exp @@ -24,7 +24,6 @@ if [prepare_for_testing "failed to prepare for testing" \ gdb_test_no_output "set interactive-mode off" if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/jit-elf-fork.exp b/gdb/testsuite/gdb.base/jit-elf-fork.exp index 18eed27..cfdec59 100644 --- a/gdb/testsuite/gdb.base/jit-elf-fork.exp +++ b/gdb/testsuite/gdb.base/jit-elf-fork.exp @@ -67,7 +67,6 @@ proc do_setup { detach-on-fork follow-fork-mode } { gdb_test_no_output "set follow-fork-mode ${follow-fork-mode}" if { ![runto_main] } { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/jit-elf-so.exp b/gdb/testsuite/gdb.base/jit-elf-so.exp index 2a3b825..6ee9c00 100644 --- a/gdb/testsuite/gdb.base/jit-elf-so.exp +++ b/gdb/testsuite/gdb.base/jit-elf-so.exp @@ -89,7 +89,6 @@ proc one_jit_test {solib_binfiles_target match_str} { } if { ![runto_main] } { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/jit-elf.exp b/gdb/testsuite/gdb.base/jit-elf.exp index 7e13f6a..6249081 100644 --- a/gdb/testsuite/gdb.base/jit-elf.exp +++ b/gdb/testsuite/gdb.base/jit-elf.exp @@ -96,7 +96,6 @@ proc one_jit_test {jit_solibs_target match_str reattach} { } if { ![runto_main] } { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/jit-reader-exec.exp b/gdb/testsuite/gdb.base/jit-reader-exec.exp index 997f66e..b496567 100644 --- a/gdb/testsuite/gdb.base/jit-reader-exec.exp +++ b/gdb/testsuite/gdb.base/jit-reader-exec.exp @@ -44,7 +44,6 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" \ clean_restart $binfile if {![runto_main]} { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/jit-reader-simple.exp b/gdb/testsuite/gdb.base/jit-reader-simple.exp index 2210d75..f3d6c2b 100644 --- a/gdb/testsuite/gdb.base/jit-reader-simple.exp +++ b/gdb/testsuite/gdb.base/jit-reader-simple.exp @@ -181,7 +181,6 @@ with_test_prefix "two JITers" { clean_restart $binfile_dl2 if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/label-without-address.exp b/gdb/testsuite/gdb.base/label-without-address.exp index 0813467..d401379 100644 --- a/gdb/testsuite/gdb.base/label-without-address.exp +++ b/gdb/testsuite/gdb.base/label-without-address.exp @@ -20,7 +20,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/label.exp b/gdb/testsuite/gdb.base/label.exp index be2d6c7..8b63ef2 100644 --- a/gdb/testsuite/gdb.base/label.exp +++ b/gdb/testsuite/gdb.base/label.exp @@ -25,7 +25,6 @@ if { [prepare_for_testing "failed to prepare" $testfile ${srcfile} debug] } { if {![runto_main]} { - fail "label tests suppressed" return -1 } diff --git a/gdb/testsuite/gdb.base/large-frame.exp b/gdb/testsuite/gdb.base/large-frame.exp index a15edee..1532a9a 100644 --- a/gdb/testsuite/gdb.base/large-frame.exp +++ b/gdb/testsuite/gdb.base/large-frame.exp @@ -36,7 +36,6 @@ proc run_test { opt_level } { } if { ![runto_main] } then { - unsupported "runto main" return } diff --git a/gdb/testsuite/gdb.base/ldbl_e308.exp b/gdb/testsuite/gdb.base/ldbl_e308.exp index ba04be0..306e3b5 100644 --- a/gdb/testsuite/gdb.base/ldbl_e308.exp +++ b/gdb/testsuite/gdb.base/ldbl_e308.exp @@ -20,7 +20,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/line-symtabs.exp b/gdb/testsuite/gdb.base/line-symtabs.exp index 2c28dff..fb7204b 100644 --- a/gdb/testsuite/gdb.base/line-symtabs.exp +++ b/gdb/testsuite/gdb.base/line-symtabs.exp @@ -21,7 +21,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/list-missing-source.exp b/gdb/testsuite/gdb.base/list-missing-source.exp index a487fb1..d6677fc 100644 --- a/gdb/testsuite/gdb.base/list-missing-source.exp +++ b/gdb/testsuite/gdb.base/list-missing-source.exp @@ -46,7 +46,6 @@ remote_file host delete $srcfile clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp index 6844b87..bba56ad 100644 --- a/gdb/testsuite/gdb.base/list.exp +++ b/gdb/testsuite/gdb.base/list.exp @@ -492,7 +492,6 @@ proc test_list {command listsize1 listsize2 linerange1 linerange2} { clean_restart $binfile if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/load-command.exp b/gdb/testsuite/gdb.base/load-command.exp index 944dc39..8efaf77 100644 --- a/gdb/testsuite/gdb.base/load-command.exp +++ b/gdb/testsuite/gdb.base/load-command.exp @@ -27,7 +27,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] { } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/long-inferior-output.exp b/gdb/testsuite/gdb.base/long-inferior-output.exp index 294786f..6a30f1d 100644 --- a/gdb/testsuite/gdb.base/long-inferior-output.exp +++ b/gdb/testsuite/gdb.base/long-inferior-output.exp @@ -40,7 +40,6 @@ if [prepare_for_testing "failed to prepare" $testfile {} {debug}] { } if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.base/long_long.exp b/gdb/testsuite/gdb.base/long_long.exp index f7fdceb..5c1853a 100644 --- a/gdb/testsuite/gdb.base/long_long.exp +++ b/gdb/testsuite/gdb.base/long_long.exp @@ -41,7 +41,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [con clean_restart ${binfile} if { ![runto known_types] } then { - fail "run to known_types" return } diff --git a/gdb/testsuite/gdb.base/longjmp.exp b/gdb/testsuite/gdb.base/longjmp.exp index 753bd50..8dc6ace 100644 --- a/gdb/testsuite/gdb.base/longjmp.exp +++ b/gdb/testsuite/gdb.base/longjmp.exp @@ -32,7 +32,6 @@ if [get_compiler_info] { clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp index 9d295ad..03ee533 100644 --- a/gdb/testsuite/gdb.base/macscp.exp +++ b/gdb/testsuite/gdb.base/macscp.exp @@ -341,7 +341,6 @@ proc maybe_kfail { func test_name } { # Start the program running. if {! [runto_main]} { - fail "macro tests suppressed: couldn't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/maint-info-sections.exp b/gdb/testsuite/gdb.base/maint-info-sections.exp index 06508de..52deedd 100644 --- a/gdb/testsuite/gdb.base/maint-info-sections.exp +++ b/gdb/testsuite/gdb.base/maint-info-sections.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing "failed to prepare" $testfile \ } if ![runto_main] then { - untested "maint info sections" return -1 } diff --git a/gdb/testsuite/gdb.base/maint-target-async-off.exp b/gdb/testsuite/gdb.base/maint-target-async-off.exp index 6d0c2fa..d82c2df 100644 --- a/gdb/testsuite/gdb.base/maint-target-async-off.exp +++ b/gdb/testsuite/gdb.base/maint-target-async-off.exp @@ -34,7 +34,6 @@ save_vars { GDBFLAGS } { gdb_test "maintenance show target-async" "Controlling the inferior in asynchronous mode is off\\." if { ![runto_main] } { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/many-completions.exp b/gdb/testsuite/gdb.base/many-completions.exp index 3440f44..050cf47 100644 --- a/gdb/testsuite/gdb.base/many-completions.exp +++ b/gdb/testsuite/gdb.base/many-completions.exp @@ -72,7 +72,6 @@ if {[prepare_for_testing "failed to prepare" "$testfile" $srcfile \ # Start the test. if {![runto_main]} { - fail "couldn't run to main" return } diff --git a/gdb/testsuite/gdb.base/max-depth.exp.tcl b/gdb/testsuite/gdb.base/max-depth.exp.tcl index e6f6792..b63e6b1 100644 --- a/gdb/testsuite/gdb.base/max-depth.exp.tcl +++ b/gdb/testsuite/gdb.base/max-depth.exp.tcl @@ -36,7 +36,6 @@ proc compile_and_run_tests { lang } { # Advance to main. if { ![runto_main] } then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/max-value-size.exp b/gdb/testsuite/gdb.base/max-value-size.exp index a029a8b..3a39be6 100644 --- a/gdb/testsuite/gdb.base/max-value-size.exp +++ b/gdb/testsuite/gdb.base/max-value-size.exp @@ -20,7 +20,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/memtag.exp b/gdb/testsuite/gdb.base/memtag.exp index aa21f7f..7938488 100644 --- a/gdb/testsuite/gdb.base/memtag.exp +++ b/gdb/testsuite/gdb.base/memtag.exp @@ -40,7 +40,6 @@ with_test_prefix "before program execution" { clean_restart $testfile if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/msym-bp-shl.exp b/gdb/testsuite/gdb.base/msym-bp-shl.exp index 34a8bd1..cf7091d 100644 --- a/gdb/testsuite/gdb.base/msym-bp-shl.exp +++ b/gdb/testsuite/gdb.base/msym-bp-shl.exp @@ -77,7 +77,6 @@ proc test {debug} { } if ![runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/msym-bp.exp b/gdb/testsuite/gdb.base/msym-bp.exp index dd5a684..ed1563d 100644 --- a/gdb/testsuite/gdb.base/msym-bp.exp +++ b/gdb/testsuite/gdb.base/msym-bp.exp @@ -69,7 +69,6 @@ proc test {debug} { test_break "before run" if ![runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/new-ui.exp b/gdb/testsuite/gdb.base/new-ui.exp index 64ad947..41bc703 100644 --- a/gdb/testsuite/gdb.base/new-ui.exp +++ b/gdb/testsuite/gdb.base/new-ui.exp @@ -82,7 +82,6 @@ proc_with_prefix do_test {} { clean_restart $testfile if ![runto_main] { - untested "could not run to main" return -1 } @@ -186,7 +185,7 @@ proc_with_prefix do_test_invalid_args {} { # Test that we can continue working normally. if ![runto_main] { - fail "could not run to main" + return } } diff --git a/gdb/testsuite/gdb.base/noreturn-finish.exp b/gdb/testsuite/gdb.base/noreturn-finish.exp index 34db7c0..5e1abe5 100644 --- a/gdb/testsuite/gdb.base/noreturn-finish.exp +++ b/gdb/testsuite/gdb.base/noreturn-finish.exp @@ -23,7 +23,6 @@ proc noreturn_finish_test { } { global gdb_prompt if { ! [ runto_main ] } then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/noreturn-return.exp b/gdb/testsuite/gdb.base/noreturn-return.exp index 2942239..7810d35 100644 --- a/gdb/testsuite/gdb.base/noreturn-return.exp +++ b/gdb/testsuite/gdb.base/noreturn-return.exp @@ -23,7 +23,6 @@ proc noreturn_test { } { global gdb_prompt if { ! [ runto_main ] } then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/options.exp b/gdb/testsuite/gdb.base/options.exp index 6b48a0f..94372aa 100644 --- a/gdb/testsuite/gdb.base/options.exp +++ b/gdb/testsuite/gdb.base/options.exp @@ -183,7 +183,6 @@ proc_with_prefix test-print {{prefix ""}} { clean_restart $binfile if ![runto_main] { - fail "cannot run to main" return } @@ -296,7 +295,6 @@ proc_with_prefix test-backtrace {} { clean_restart $binfile if ![runto_main] { - fail "cannot run to main" return } diff --git a/gdb/testsuite/gdb.base/overlays.exp b/gdb/testsuite/gdb.base/overlays.exp index 7f380e2..aeebd46 100644 --- a/gdb/testsuite/gdb.base/overlays.exp +++ b/gdb/testsuite/gdb.base/overlays.exp @@ -55,7 +55,6 @@ gdb_load ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp b/gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp index eba4066..81b36ca 100644 --- a/gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp +++ b/gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp @@ -37,7 +37,6 @@ proc test_ctrlc_while_target_running_does_not_paginate {} { clean_restart $binfile if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/paginate-bg-execution.exp b/gdb/testsuite/gdb.base/paginate-bg-execution.exp index fbecb2b..cfebafe 100644 --- a/gdb/testsuite/gdb.base/paginate-bg-execution.exp +++ b/gdb/testsuite/gdb.base/paginate-bg-execution.exp @@ -33,7 +33,6 @@ proc test_bg_execution_pagination_return {} { clean_restart $binfile if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/paginate-inferior-exit.exp b/gdb/testsuite/gdb.base/paginate-inferior-exit.exp index 3cf2e34..5775552 100644 --- a/gdb/testsuite/gdb.base/paginate-inferior-exit.exp +++ b/gdb/testsuite/gdb.base/paginate-inferior-exit.exp @@ -32,7 +32,6 @@ proc test_paginate_inferior_exited {} { clean_restart $binfile if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/pie-fork.exp b/gdb/testsuite/gdb.base/pie-fork.exp index 5ab6521..2bbdaa4 100644 --- a/gdb/testsuite/gdb.base/pie-fork.exp +++ b/gdb/testsuite/gdb.base/pie-fork.exp @@ -30,7 +30,6 @@ proc setup_test {detach_on_fork {follow_fork_mode "parent"}} { clean_restart ${binfile} if ![runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/pr10179.exp b/gdb/testsuite/gdb.base/pr10179.exp index fdc6199..b3a9969 100644 --- a/gdb/testsuite/gdb.base/pr10179.exp +++ b/gdb/testsuite/gdb.base/pr10179.exp @@ -23,7 +23,6 @@ if {[build_executable ${testname}.exp $testname $sources {debug}] == -1} { clean_restart ${testname} if ![runto_main] { - untested pr10179 return -1 } diff --git a/gdb/testsuite/gdb.base/pr11022.exp b/gdb/testsuite/gdb.base/pr11022.exp index e05b8f2..8a5c5b0 100644 --- a/gdb/testsuite/gdb.base/pr11022.exp +++ b/gdb/testsuite/gdb.base/pr11022.exp @@ -29,7 +29,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/pretty-array.exp b/gdb/testsuite/gdb.base/pretty-array.exp index 00f875c..4a29a36 100644 --- a/gdb/testsuite/gdb.base/pretty-array.exp +++ b/gdb/testsuite/gdb.base/pretty-array.exp @@ -23,7 +23,6 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} { } if ![runto_main] { - untested $testfile.exp return -1 } diff --git a/gdb/testsuite/gdb.base/pretty-print.exp b/gdb/testsuite/gdb.base/pretty-print.exp index 3dddbe2..bb57429 100644 --- a/gdb/testsuite/gdb.base/pretty-print.exp +++ b/gdb/testsuite/gdb.base/pretty-print.exp @@ -23,7 +23,6 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} { } if ![runto_main] { - untested $testfile.exp return -1 } diff --git a/gdb/testsuite/gdb.base/print-file-var.exp b/gdb/testsuite/gdb.base/print-file-var.exp index 156fecb..054ab23 100644 --- a/gdb/testsuite/gdb.base/print-file-var.exp +++ b/gdb/testsuite/gdb.base/print-file-var.exp @@ -82,7 +82,6 @@ proc test {hidden dlopen version_id_main lang} { gdb_load_shlib $libobj2 if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp index 8967de3..b2f90aa 100644 --- a/gdb/testsuite/gdb.base/printcmds.exp +++ b/gdb/testsuite/gdb.base/printcmds.exp @@ -1035,7 +1035,6 @@ gdb_test "p ctable1\[120\]" "120 'x'" "p ctable1\[120\] #1" gdb_load ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/quit-live.exp b/gdb/testsuite/gdb.base/quit-live.exp index 703f000..a7e945a 100644 --- a/gdb/testsuite/gdb.base/quit-live.exp +++ b/gdb/testsuite/gdb.base/quit-live.exp @@ -102,7 +102,6 @@ proc quit_with_live_inferior {appear_how extra_inferior quit_how} { if {$appear_how == "run"} { if ![runto_main] then { - fail "can't run to main" return } } elseif {$appear_how == "attach" || $appear_how == "attach-nofile"} { diff --git a/gdb/testsuite/gdb.base/range-stepping.exp b/gdb/testsuite/gdb.base/range-stepping.exp index c1ba8ef..d1e419c 100644 --- a/gdb/testsuite/gdb.base/range-stepping.exp +++ b/gdb/testsuite/gdb.base/range-stepping.exp @@ -23,7 +23,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } { } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/recpar.exp b/gdb/testsuite/gdb.base/recpar.exp index cf53537..107a250 100644 --- a/gdb/testsuite/gdb.base/recpar.exp +++ b/gdb/testsuite/gdb.base/recpar.exp @@ -20,7 +20,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/reggroups.exp b/gdb/testsuite/gdb.base/reggroups.exp index 87b69dd..f106e36 100644 --- a/gdb/testsuite/gdb.base/reggroups.exp +++ b/gdb/testsuite/gdb.base/reggroups.exp @@ -24,7 +24,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/remote.exp b/gdb/testsuite/gdb.base/remote.exp index 8f92ea7..e9bcb8a 100644 --- a/gdb/testsuite/gdb.base/remote.exp +++ b/gdb/testsuite/gdb.base/remote.exp @@ -159,7 +159,6 @@ set sizeof_random_data [get_sizeof "random_data" 48*1024] # Part THREE: Check the upload behavour # if ![runto_main] then { - fail "cannot run to main" return } diff --git a/gdb/testsuite/gdb.base/return2.exp b/gdb/testsuite/gdb.base/return2.exp index 86b14d7..5f4393b 100644 --- a/gdb/testsuite/gdb.base/return2.exp +++ b/gdb/testsuite/gdb.base/return2.exp @@ -82,7 +82,6 @@ proc return2_tests { } { global gdb_prompt skip_float_test if { ! [ runto_main ] } then { - untested "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/run-attach-while-running.exp b/gdb/testsuite/gdb.base/run-attach-while-running.exp index 1cc754a..581fc48 100644 --- a/gdb/testsuite/gdb.base/run-attach-while-running.exp +++ b/gdb/testsuite/gdb.base/run-attach-while-running.exp @@ -64,7 +64,6 @@ proc_with_prefix test { non-stop threaded run-or-attach } { } if { ![runto_main] } { - untested "could not run to main" return } diff --git a/gdb/testsuite/gdb.base/save-bp.exp b/gdb/testsuite/gdb.base/save-bp.exp index 20e1243..14db3aa 100644 --- a/gdb/testsuite/gdb.base/save-bp.exp +++ b/gdb/testsuite/gdb.base/save-bp.exp @@ -20,7 +20,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } { } if ![runto_main] { - untested "could not run to main" return -1 } # Delete all breakpoints so that the "runto_main" breakpoint above @@ -63,7 +62,6 @@ gdb_test "save breakpoint $bps" "" "save breakpoint bps" # Now start a new debugger session... clean_restart $testfile if ![runto_main] { - fail "cannot restart program" return -1 } # Delete all breakpoints so that the "runto_main" breakpoint above diff --git a/gdb/testsuite/gdb.base/savedregs.exp b/gdb/testsuite/gdb.base/savedregs.exp index 4ed9b57..c8325e3 100644 --- a/gdb/testsuite/gdb.base/savedregs.exp +++ b/gdb/testsuite/gdb.base/savedregs.exp @@ -42,7 +42,6 @@ clean_restart ${binfile} # Advance to main if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/sect-cmd.exp b/gdb/testsuite/gdb.base/sect-cmd.exp index 387198d..8856747 100644 --- a/gdb/testsuite/gdb.base/sect-cmd.exp +++ b/gdb/testsuite/gdb.base/sect-cmd.exp @@ -23,7 +23,6 @@ set srcfile break.c set srcfile1 break1.c if ![runto_main] then { - fail "couldn't run to main" return } diff --git a/gdb/testsuite/gdb.base/sepdebug.exp b/gdb/testsuite/gdb.base/sepdebug.exp index be36cc9..2c8c9b5 100644 --- a/gdb/testsuite/gdb.base/sepdebug.exp +++ b/gdb/testsuite/gdb.base/sepdebug.exp @@ -278,7 +278,9 @@ gdb_test "info break" "Num Type.*Disp Enb Address.*What.*\[\r\n\] # inappropriately. (There are no calls to those system functions # in this test program.) # -if ![runto_main] then { fail "sepdebug tests suppressed" } +if ![runto_main] then { + return +} gdb_test "catch fork" "Catchpoint \[0-9\]+ \\(fork\\)" \ "set catch fork, never expected to trigger" @@ -327,7 +329,9 @@ gdb_test "break" \ # Verify that a "silent" breakpoint can be set, and that GDB is indeed # "silent" about its triggering. # -if ![runto_main] then { fail "sepdebug tests suppressed" } +if ![runto_main] then { + return +} gdb_test_multiple "break $bp_location1" \ "set to-be-silent break bp_location1" { @@ -447,7 +451,9 @@ gdb_test_multiple "finish" "finish from called function" { # Verify that GDB responds gracefully to a "finish" command with # arguments. # -if ![runto_main] then { fail "sepdebug tests suppressed" } +if ![runto_main] then { + return +} gdb_test "finish 123" \ "The \"finish\" command does not take any arguments.*" \ diff --git a/gdb/testsuite/gdb.base/set-cwd.exp b/gdb/testsuite/gdb.base/set-cwd.exp index b3d115a..eb8835b 100644 --- a/gdb/testsuite/gdb.base/set-cwd.exp +++ b/gdb/testsuite/gdb.base/set-cwd.exp @@ -34,7 +34,6 @@ proc_with_prefix test_tilde_expansion { } { gdb_test_no_output "set cwd ~/" "set inferior cwd to ~/ dir" if { ![runto_main] } { - untested "could not run to main" return -1 } @@ -105,7 +104,6 @@ proc_with_prefix test_cd_into_dir { } { gdb_test_no_output "set cwd $tmpdir" "set inferior cwd to temp dir" if { ![runto_main] } { - untested "could not run to main" return -1 } @@ -162,7 +160,6 @@ proc_with_prefix test_cwd_reset { } { with_test_prefix "running with set cwd" { if { ![runto_main] } { - untested "could not run to main" return -1 } } @@ -178,7 +175,6 @@ proc_with_prefix test_cwd_reset { } { with_test_prefix "running without set cwd" { if { ![runto_main] } { - untested "could not run to main" return -1 } } diff --git a/gdb/testsuite/gdb.base/set-noassign.exp b/gdb/testsuite/gdb.base/set-noassign.exp index bc41705..87f9c92 100644 --- a/gdb/testsuite/gdb.base/set-noassign.exp +++ b/gdb/testsuite/gdb.base/set-noassign.exp @@ -19,7 +19,6 @@ if { [prepare_for_testing "failed to prepare" "set-noassign" start.c {debug nowa } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp index 6e09361..bc9aaa8 100644 --- a/gdb/testsuite/gdb.base/setshow.exp +++ b/gdb/testsuite/gdb.base/setshow.exp @@ -32,7 +32,6 @@ proc_with_prefix test_setshow_annotate {} { clean_restart $::binfile if ![runto_main] then { - fail "can't run to main" return } @@ -82,7 +81,6 @@ proc_with_prefix test_setshow_args {} { clean_restart $::binfile if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/share-psymtabs-bt.exp b/gdb/testsuite/gdb.base/share-psymtabs-bt.exp index 549325d..87e2036 100644 --- a/gdb/testsuite/gdb.base/share-psymtabs-bt.exp +++ b/gdb/testsuite/gdb.base/share-psymtabs-bt.exp @@ -42,7 +42,6 @@ if { [gdb_file_cmd $binfile] != 0 } { gdb_breakpoint "bar" if { ![runto "bar"] } { - fail "failed to run to bar" return -1 } diff --git a/gdb/testsuite/gdb.base/shreloc.exp b/gdb/testsuite/gdb.base/shreloc.exp index 8cc9adb..228c0ec 100644 --- a/gdb/testsuite/gdb.base/shreloc.exp +++ b/gdb/testsuite/gdb.base/shreloc.exp @@ -77,7 +77,6 @@ gdb_load_shlib $lib2_sl # Load up the shared objects if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/sigaltstack.exp b/gdb/testsuite/gdb.base/sigaltstack.exp index 61a1fcc..f858074 100644 --- a/gdb/testsuite/gdb.base/sigaltstack.exp +++ b/gdb/testsuite/gdb.base/sigaltstack.exp @@ -45,7 +45,6 @@ gdb_test "handle SIGPROF print pass nostop" # Advance to main if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/sigbpt.exp b/gdb/testsuite/gdb.base/sigbpt.exp index 1bb0fd9..5a14707 100644 --- a/gdb/testsuite/gdb.base/sigbpt.exp +++ b/gdb/testsuite/gdb.base/sigbpt.exp @@ -45,7 +45,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/siginfo-addr.exp b/gdb/testsuite/gdb.base/siginfo-addr.exp index 9774252..7b52a01 100644 --- a/gdb/testsuite/gdb.base/siginfo-addr.exp +++ b/gdb/testsuite/gdb.base/siginfo-addr.exp @@ -35,7 +35,6 @@ gdb_test "display/i \$pc" # Advance to main if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/siginfo-obj.exp b/gdb/testsuite/gdb.base/siginfo-obj.exp index a98013d..1f7b4e4 100644 --- a/gdb/testsuite/gdb.base/siginfo-obj.exp +++ b/gdb/testsuite/gdb.base/siginfo-obj.exp @@ -40,7 +40,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { # Advance to main if ![runto_main] then { - fail "can't run to main" return 0 } @@ -101,7 +100,6 @@ with_test_prefix "validate siginfo fields" { # Advance to main if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/siginfo-thread.exp b/gdb/testsuite/gdb.base/siginfo-thread.exp index 1b43e15..d809b55 100644 --- a/gdb/testsuite/gdb.base/siginfo-thread.exp +++ b/gdb/testsuite/gdb.base/siginfo-thread.exp @@ -37,7 +37,6 @@ clean_restart $binfile # Advance to main if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/siginfo.exp b/gdb/testsuite/gdb.base/siginfo.exp index f6bed9f..ae9c773 100644 --- a/gdb/testsuite/gdb.base/siginfo.exp +++ b/gdb/testsuite/gdb.base/siginfo.exp @@ -39,7 +39,6 @@ gdb_test "display/i \$pc" # Advance to main if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/signals-state-child.exp b/gdb/testsuite/gdb.base/signals-state-child.exp index 0984033..ce143b1 100644 --- a/gdb/testsuite/gdb.base/signals-state-child.exp +++ b/gdb/testsuite/gdb.base/signals-state-child.exp @@ -80,7 +80,6 @@ remote_close target clean_restart $binfile if { ! [ runto_main ] } then { - untested "failed to compile" return -1 } diff --git a/gdb/testsuite/gdb.base/signest.exp b/gdb/testsuite/gdb.base/signest.exp index 4042d16..cc23388 100644 --- a/gdb/testsuite/gdb.base/signest.exp +++ b/gdb/testsuite/gdb.base/signest.exp @@ -27,7 +27,6 @@ if [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}] { } if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/signull.exp b/gdb/testsuite/gdb.base/signull.exp index f565496..9d4268a 100644 --- a/gdb/testsuite/gdb.base/signull.exp +++ b/gdb/testsuite/gdb.base/signull.exp @@ -47,7 +47,6 @@ clean_restart ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/sigrepeat.exp b/gdb/testsuite/gdb.base/sigrepeat.exp index eb11c10..b0303a8 100644 --- a/gdb/testsuite/gdb.base/sigrepeat.exp +++ b/gdb/testsuite/gdb.base/sigrepeat.exp @@ -37,7 +37,6 @@ clean_restart ${binfile} # Advance to main if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/skip-inline.exp b/gdb/testsuite/gdb.base/skip-inline.exp index fb15928..3d5fdc0 100644 --- a/gdb/testsuite/gdb.base/skip-inline.exp +++ b/gdb/testsuite/gdb.base/skip-inline.exp @@ -25,7 +25,6 @@ set srcfile skip-inline.c set srcfile1 skip1.c if ![runto_main] { - fail "can't run to main" return } @@ -48,7 +47,6 @@ gdb_test "step" ".*" "step back to main, again" gdb_test "bt" "\\s*\\#0\\s+main.*" "again back to main" if ![runto_main] { - fail "can't run to main" return } @@ -65,7 +63,6 @@ with_test_prefix "double step" { } if ![runto_main] { - fail "can't run to main" return } @@ -78,7 +75,6 @@ with_test_prefix "triple step" { } if ![runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/skip-solib.exp b/gdb/testsuite/gdb.base/skip-solib.exp index a66272a..9819815 100644 --- a/gdb/testsuite/gdb.base/skip-solib.exp +++ b/gdb/testsuite/gdb.base/skip-solib.exp @@ -74,7 +74,9 @@ with_test_prefix "ignoring solib file" { "Num\\s+Enb\\s+Glob\\s+File\\s+RE\\s+Function\\s*" \ "1\\s+y\\s+n\\s+${srcfile_lib}\\s+n\\s+<none>\\s*"] - if ![runto_main] { fail "skip tests suppressed" } + if ![runto_main] { + return + } # # We shouldn't step into square(), since we skipped skip-solib-lib.c. @@ -93,7 +95,9 @@ with_test_prefix "ignoring solib function" { "Function multiply will be skipped when stepping\\." \ "skip function" - if ![runto_main] { fail "skip tests suppressed" } + if ![runto_main] { + return + } # # Our first step should take us into square. diff --git a/gdb/testsuite/gdb.base/skip.exp b/gdb/testsuite/gdb.base/skip.exp index 7414103..076954f 100644 --- a/gdb/testsuite/gdb.base/skip.exp +++ b/gdb/testsuite/gdb.base/skip.exp @@ -50,7 +50,6 @@ gdb_test "skip -x" "Invalid skip option: -x" gdb_test "skip -rfu foo.* xyzzy" "Invalid argument: xyzzy" if ![runto_main] { - fail "can't run to main" return } @@ -95,7 +94,6 @@ gdb_test "info skip" \ # right over it and go to the second line of main(). if ![runto_main] { - fail "can't run to main" return } @@ -116,7 +114,6 @@ with_test_prefix "step after deleting 1" { "info skip (delete 1)" if ![runto_main] { - fail "can't run to main" return } @@ -136,7 +133,6 @@ with_test_prefix "step after disabling 3" { "info skip shows entry as disabled" if ![runto_main] { - fail "can't run to main" return } @@ -160,7 +156,6 @@ with_test_prefix "step after enable 3" { "info skip shows entry as enabled" if ![runto_main] { - fail "can't run to main" return } @@ -230,7 +225,6 @@ gdb_test "skip -rfu ^b.z$" "Function\\(s\\) \\^b\\.z\\$ will be skipped when ste with_test_prefix "step using -fi" { if ![runto_main] { - fail "can't run to main" return } @@ -243,7 +237,6 @@ with_test_prefix "step using -fi" { with_test_prefix "step using -gfi" { if ![runto_main] { - fail "can't run to main" return } @@ -256,7 +249,6 @@ with_test_prefix "step using -gfi" { with_test_prefix "step using -fu for baz" { if ![runto_main] { - fail "can't run to main" return } @@ -274,7 +266,6 @@ with_test_prefix "step using -fu for baz" { with_test_prefix "step using -rfu for baz" { if ![runto_main] { - fail "can't run to main" return } @@ -295,8 +286,7 @@ with_test_prefix "step using -rfu for baz" { with_test_prefix "step using -fi + -fu" { gdb_test_no_output "skip delete" - if ![runto test_skip_file_and_function no-message] { - fail "can't run to test_skip_file_and_function" + if ![runto test_skip_file_and_function] { return } @@ -314,7 +304,6 @@ with_test_prefix "skip delete completion" { global binfile clean_restart "${binfile}" if ![runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/skipcxx.exp b/gdb/testsuite/gdb.base/skipcxx.exp index 6215f0f..eca7651 100644 --- a/gdb/testsuite/gdb.base/skipcxx.exp +++ b/gdb/testsuite/gdb.base/skipcxx.exp @@ -20,7 +20,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/so-impl-ld.exp b/gdb/testsuite/gdb.base/so-impl-ld.exp index f7d5adb..efe9463 100644 --- a/gdb/testsuite/gdb.base/so-impl-ld.exp +++ b/gdb/testsuite/gdb.base/so-impl-ld.exp @@ -44,7 +44,9 @@ gdb_load_shlib $lib_sl # This program implicitly loads SOM shared libraries. # -if ![runto_main] then { fail "implicit solibs tests suppressed" } +if ![runto_main] then { + return +} # Verify that we can step over the first shlib call. # diff --git a/gdb/testsuite/gdb.base/solib-corrupted.exp b/gdb/testsuite/gdb.base/solib-corrupted.exp index 7a32a20..a8cc172 100644 --- a/gdb/testsuite/gdb.base/solib-corrupted.exp +++ b/gdb/testsuite/gdb.base/solib-corrupted.exp @@ -31,7 +31,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/solib-disc.exp b/gdb/testsuite/gdb.base/solib-disc.exp index dfce4c9..31fcb81 100644 --- a/gdb/testsuite/gdb.base/solib-disc.exp +++ b/gdb/testsuite/gdb.base/solib-disc.exp @@ -56,7 +56,6 @@ gdb_load ${binfile} gdb_load_shlib $libobj if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/solib-display.exp b/gdb/testsuite/gdb.base/solib-display.exp index 67b57cb..54de334 100644 --- a/gdb/testsuite/gdb.base/solib-display.exp +++ b/gdb/testsuite/gdb.base/solib-display.exp @@ -90,7 +90,6 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" { clean_restart $executable if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/solib-search.exp b/gdb/testsuite/gdb.base/solib-search.exp index a2e3ffe..e004f5a 100644 --- a/gdb/testsuite/gdb.base/solib-search.exp +++ b/gdb/testsuite/gdb.base/solib-search.exp @@ -85,7 +85,6 @@ if { [gdb_compile $srcdir/$subdir/${srcfile} ${binfile} \ clean_restart $testfile if { ![runto_main] } { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/solib-symbol.exp b/gdb/testsuite/gdb.base/solib-symbol.exp index 90a8562..5e6beb1 100644 --- a/gdb/testsuite/gdb.base/solib-symbol.exp +++ b/gdb/testsuite/gdb.base/solib-symbol.exp @@ -54,7 +54,6 @@ gdb_test "br foo2" \ delete_breakpoints if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/solib-vanish.exp b/gdb/testsuite/gdb.base/solib-vanish.exp index 846a2aa..f007af3 100644 --- a/gdb/testsuite/gdb.base/solib-vanish.exp +++ b/gdb/testsuite/gdb.base/solib-vanish.exp @@ -86,7 +86,6 @@ if { [gdb_compile_shlib ${srcfile_lib2} ${binfile_lib2} $lib2_flags] != "" clean_restart $testfile if { ![runto_main] } { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/source-dir.exp b/gdb/testsuite/gdb.base/source-dir.exp index eff6831..cf8f19a 100644 --- a/gdb/testsuite/gdb.base/source-dir.exp +++ b/gdb/testsuite/gdb.base/source-dir.exp @@ -123,7 +123,6 @@ proc test_truncated_comp_dir {} { "\r\nSource directories searched: \\\$cdir\[:;\]\\\$cwd" if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/source-execution.exp b/gdb/testsuite/gdb.base/source-execution.exp index c3b9acd..42e5233 100644 --- a/gdb/testsuite/gdb.base/source-execution.exp +++ b/gdb/testsuite/gdb.base/source-execution.exp @@ -24,7 +24,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp b/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp index f902adf..c27a7c7 100644 --- a/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp +++ b/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp @@ -45,7 +45,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp b/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp index ceee2d2..c6ba38c 100644 --- a/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp +++ b/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp @@ -25,7 +25,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/stack-checking.exp b/gdb/testsuite/gdb.base/stack-checking.exp index 04d4296..ca66617 100644 --- a/gdb/testsuite/gdb.base/stack-checking.exp +++ b/gdb/testsuite/gdb.base/stack-checking.exp @@ -24,7 +24,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [con clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/stack-protector.exp b/gdb/testsuite/gdb.base/stack-protector.exp index 5181ce8..b7fed3b 100644 --- a/gdb/testsuite/gdb.base/stack-protector.exp +++ b/gdb/testsuite/gdb.base/stack-protector.exp @@ -45,7 +45,6 @@ proc simple_func_break_test { protection } { } if { ![runto_main] } then { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/step-break.exp b/gdb/testsuite/gdb.base/step-break.exp index 3721d1d..10f64f0 100644 --- a/gdb/testsuite/gdb.base/step-break.exp +++ b/gdb/testsuite/gdb.base/step-break.exp @@ -22,7 +22,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp b/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp index d84a023..e919d31 100644 --- a/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp +++ b/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp @@ -22,7 +22,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if { ![runto_main] } { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/step-line.exp b/gdb/testsuite/gdb.base/step-line.exp index a3b822f..bd753df 100644 --- a/gdb/testsuite/gdb.base/step-line.exp +++ b/gdb/testsuite/gdb.base/step-line.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/step-over-exit.exp b/gdb/testsuite/gdb.base/step-over-exit.exp index d9a47d3..76c7823 100644 --- a/gdb/testsuite/gdb.base/step-over-exit.exp +++ b/gdb/testsuite/gdb.base/step-over-exit.exp @@ -36,7 +36,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/step-over-no-symbols.exp b/gdb/testsuite/gdb.base/step-over-no-symbols.exp index 74755b9..643794e 100644 --- a/gdb/testsuite/gdb.base/step-over-no-symbols.exp +++ b/gdb/testsuite/gdb.base/step-over-no-symbols.exp @@ -50,8 +50,6 @@ proc test_step_over { displaced } { clean_restart $binfile if ![runto_main] { - fail "couldn't run to main" - untested "stepping over breakpoint with displaced=$displaced" return -1 } diff --git a/gdb/testsuite/gdb.base/step-over-syscall.exp b/gdb/testsuite/gdb.base/step-over-syscall.exp index 5d4a75f..a55ed97 100644 --- a/gdb/testsuite/gdb.base/step-over-syscall.exp +++ b/gdb/testsuite/gdb.base/step-over-syscall.exp @@ -116,7 +116,6 @@ proc setup { syscall } { clean_restart $testfile if { ![runto_main] } then { - fail "run to main ($syscall)" return -1 } @@ -388,7 +387,6 @@ step_over_syscall "clone" set testfile "step-over-fork" clean_restart $testfile if { ![runto_main] } then { - fail "run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/step-test.exp b/gdb/testsuite/gdb.base/step-test.exp index 8664b3e..0cde9e2 100644 --- a/gdb/testsuite/gdb.base/step-test.exp +++ b/gdb/testsuite/gdb.base/step-test.exp @@ -27,7 +27,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debu clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } @@ -143,11 +142,9 @@ gdb_test_multiple "finish" "$test" { -re ".*(Program received|$inferior_exited_re).*$gdb_prompt $" { # Oops... We ran to the end of the program... Better reset if {![runto_main]} then { - fail "$test (Can't run to main)" return 0 } if {![runto step-test.c:45]} { - fail "$test (Can't run to line 45)" return 0 } fail "$test" diff --git a/gdb/testsuite/gdb.base/structs2.exp b/gdb/testsuite/gdb.base/structs2.exp index 9af04de..9f28243 100644 --- a/gdb/testsuite/gdb.base/structs2.exp +++ b/gdb/testsuite/gdb.base/structs2.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" $binfile $srcfile {debug}] } { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/structs3.exp b/gdb/testsuite/gdb.base/structs3.exp index c141a23..f07f86b 100644 --- a/gdb/testsuite/gdb.base/structs3.exp +++ b/gdb/testsuite/gdb.base/structs3.exp @@ -22,7 +22,6 @@ if { [prepare_for_testing "failed to prepare" "structs3" "" {debug}] } { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/style-interp-exec-mi.exp b/gdb/testsuite/gdb.base/style-interp-exec-mi.exp index f92eb89..6fb75cb 100644 --- a/gdb/testsuite/gdb.base/style-interp-exec-mi.exp +++ b/gdb/testsuite/gdb.base/style-interp-exec-mi.exp @@ -33,7 +33,6 @@ save_vars { env(TERM) } { } if { ![runto_main] } { - untested "could not run to main" return } diff --git a/gdb/testsuite/gdb.base/style-logging.exp b/gdb/testsuite/gdb.base/style-logging.exp index e5d1a51..cd0c99a 100644 --- a/gdb/testsuite/gdb.base/style-logging.exp +++ b/gdb/testsuite/gdb.base/style-logging.exp @@ -37,7 +37,6 @@ save_vars { env(TERM) } { } if {![runto_main]} { - fail "style tests failed" return } diff --git a/gdb/testsuite/gdb.base/style.exp b/gdb/testsuite/gdb.base/style.exp index d804853..91d3059 100644 --- a/gdb/testsuite/gdb.base/style.exp +++ b/gdb/testsuite/gdb.base/style.exp @@ -87,7 +87,6 @@ proc run_style_tests { } { set readnow [readnow] if {![runto_main]} { - fail "style tests failed" return } diff --git a/gdb/testsuite/gdb.base/sym-file.exp b/gdb/testsuite/gdb.base/sym-file.exp index 463645b..fc4c358 100644 --- a/gdb/testsuite/gdb.base/sym-file.exp +++ b/gdb/testsuite/gdb.base/sym-file.exp @@ -76,7 +76,6 @@ if {[prepare_for_testing "failed to prepare" $binfile "$srcfile $srcfile2" $exe gdb_load_shlib ${lib_so} if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/symbol-alias.exp b/gdb/testsuite/gdb.base/symbol-alias.exp index f221b63..9b25489 100644 --- a/gdb/testsuite/gdb.base/symbol-alias.exp +++ b/gdb/testsuite/gdb.base/symbol-alias.exp @@ -21,7 +21,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} [list $srcfile $srcfil } if ![runto_main] then { - fail "can't run to main" continue } diff --git a/gdb/testsuite/gdb.base/symlink-sourcefile.exp b/gdb/testsuite/gdb.base/symlink-sourcefile.exp index 0540707..2003f41 100644 --- a/gdb/testsuite/gdb.base/symlink-sourcefile.exp +++ b/gdb/testsuite/gdb.base/symlink-sourcefile.exp @@ -36,7 +36,6 @@ if {[prepare_for_testing $testfile $testfile $srcfilelink]} { } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/symtab-search-order.exp b/gdb/testsuite/gdb.base/symtab-search-order.exp index 859f2da..180e6a2 100644 --- a/gdb/testsuite/gdb.base/symtab-search-order.exp +++ b/gdb/testsuite/gdb.base/symtab-search-order.exp @@ -43,7 +43,6 @@ clean_restart $binfile gdb_load_shlib $lib1 if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/template.exp b/gdb/testsuite/gdb.base/template.exp index 694be12..d685333 100644 --- a/gdb/testsuite/gdb.base/template.exp +++ b/gdb/testsuite/gdb.base/template.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" \ } if { ![runto_main] } { - untested "could not run to main" return } diff --git a/gdb/testsuite/gdb.base/term.exp b/gdb/testsuite/gdb.base/term.exp index 1a83099..152e6a1 100644 --- a/gdb/testsuite/gdb.base/term.exp +++ b/gdb/testsuite/gdb.base/term.exp @@ -26,7 +26,6 @@ gdb_test "info terminal" \ "test info terminal pre-execution" if ![runto break_here] then { - fail "can't run to break_here" return 0 } diff --git a/gdb/testsuite/gdb.base/type-opaque.exp b/gdb/testsuite/gdb.base/type-opaque.exp index 9801542..ec2dcae 100644 --- a/gdb/testsuite/gdb.base/type-opaque.exp +++ b/gdb/testsuite/gdb.base/type-opaque.exp @@ -43,7 +43,6 @@ clean_restart ${binfile} gdb_load_shlib ${libobj} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/ui-redirect.exp b/gdb/testsuite/gdb.base/ui-redirect.exp index cb0749b..363c563 100644 --- a/gdb/testsuite/gdb.base/ui-redirect.exp +++ b/gdb/testsuite/gdb.base/ui-redirect.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ui-redirect start.c] } { } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/until-nodebug.exp b/gdb/testsuite/gdb.base/until-nodebug.exp index fb68ebe..0bcc7c3 100644 --- a/gdb/testsuite/gdb.base/until-nodebug.exp +++ b/gdb/testsuite/gdb.base/until-nodebug.exp @@ -23,7 +23,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile nodebug]} { } if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/until.exp b/gdb/testsuite/gdb.base/until.exp index 446d712..619d839 100644 --- a/gdb/testsuite/gdb.base/until.exp +++ b/gdb/testsuite/gdb.base/until.exp @@ -26,7 +26,6 @@ set bp_location20 [gdb_get_line_number "set breakpoint 20 here"] set bp_location21 [gdb_get_line_number "set breakpoint 21 here"] if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/unwindonsignal.exp b/gdb/testsuite/gdb.base/unwindonsignal.exp index 15d4f18..ac67c21 100644 --- a/gdb/testsuite/gdb.base/unwindonsignal.exp +++ b/gdb/testsuite/gdb.base/unwindonsignal.exp @@ -33,7 +33,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if { ![runto_main] } { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/utf8-identifiers.exp b/gdb/testsuite/gdb.base/utf8-identifiers.exp index 39d5c9f..c1c07dc 100644 --- a/gdb/testsuite/gdb.base/utf8-identifiers.exp +++ b/gdb/testsuite/gdb.base/utf8-identifiers.exp @@ -31,7 +31,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} [list $srcfile]] } { } if ![runto done] { - fail "couldn't run to done" return } diff --git a/gdb/testsuite/gdb.base/vla-optimized-out.exp b/gdb/testsuite/gdb.base/vla-optimized-out.exp index 82c21eb..97a33c3 100644 --- a/gdb/testsuite/gdb.base/vla-optimized-out.exp +++ b/gdb/testsuite/gdb.base/vla-optimized-out.exp @@ -33,7 +33,6 @@ proc vla_optimized_out {exe_suffix options} { } if ![runto f1] { - fail "can't run to f1" return } diff --git a/gdb/testsuite/gdb.base/watch-cond-infcall.exp b/gdb/testsuite/gdb.base/watch-cond-infcall.exp index d250af3..2cd3e25 100644 --- a/gdb/testsuite/gdb.base/watch-cond-infcall.exp +++ b/gdb/testsuite/gdb.base/watch-cond-infcall.exp @@ -34,7 +34,6 @@ proc test_watchpoint { hw } { clean_restart ${testfile} if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.base/watch-cond.exp b/gdb/testsuite/gdb.base/watch-cond.exp index 4cb8894..be1d540 100644 --- a/gdb/testsuite/gdb.base/watch-cond.exp +++ b/gdb/testsuite/gdb.base/watch-cond.exp @@ -29,7 +29,6 @@ if [target_info exists gdb,no_hardware_watchpoints] { } if ![runto_main] then { - fail "can't run to main" return } @@ -49,7 +48,6 @@ if [target_info exists gdb,no_hardware_watchpoints] { } if ![runto_main] then { - fail "can't run to main" return } @@ -69,7 +67,6 @@ if [target_info exists gdb,no_hardware_watchpoints] { } if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/watch-non-mem.exp b/gdb/testsuite/gdb.base/watch-non-mem.exp index d53d7fe..c3b0646 100644 --- a/gdb/testsuite/gdb.base/watch-non-mem.exp +++ b/gdb/testsuite/gdb.base/watch-non-mem.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.base/watch-read.exp b/gdb/testsuite/gdb.base/watch-read.exp index 51b45a9..38a1cd3 100644 --- a/gdb/testsuite/gdb.base/watch-read.exp +++ b/gdb/testsuite/gdb.base/watch-read.exp @@ -33,7 +33,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.base/watch-vfork.exp b/gdb/testsuite/gdb.base/watch-vfork.exp index b051e66..15a6239 100644 --- a/gdb/testsuite/gdb.base/watch-vfork.exp +++ b/gdb/testsuite/gdb.base/watch-vfork.exp @@ -28,7 +28,6 @@ proc test_watchpoint_across_vfork { hw teststr } { clean_restart ${testfile} if { ![runto_main] } then { - fail "run to main ($teststr)" return } diff --git a/gdb/testsuite/gdb.base/watch_thread_num.exp b/gdb/testsuite/gdb.base/watch_thread_num.exp index cbfc956..e1936b0 100644 --- a/gdb/testsuite/gdb.base/watch_thread_num.exp +++ b/gdb/testsuite/gdb.base/watch_thread_num.exp @@ -42,7 +42,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab clean_restart ${binfile} if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.base/watchpoint-hw-attach.exp b/gdb/testsuite/gdb.base/watchpoint-hw-attach.exp index 33adda7..879d762 100644 --- a/gdb/testsuite/gdb.base/watchpoint-hw-attach.exp +++ b/gdb/testsuite/gdb.base/watchpoint-hw-attach.exp @@ -31,7 +31,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] { - untested "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp b/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp index b4a56d0..df03b9e 100644 --- a/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp +++ b/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp @@ -29,7 +29,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp b/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp index fa3db3f..74a98c5 100644 --- a/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp +++ b/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp @@ -80,7 +80,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if { ![runto_main] } then { - fail "run to main" return } @@ -135,7 +134,6 @@ proc test {always_inserted} { clean_restart $binfile if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp index 4a747b9..af54b74 100644 --- a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp +++ b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp index e763839..75ba65d 100644 --- a/gdb/testsuite/gdb.base/watchpoint.exp +++ b/gdb/testsuite/gdb.base/watchpoint.exp @@ -805,7 +805,9 @@ proc test_no_hw_watchpoints {} { # (This proves rather little on kernels that don't support # fast watchpoints, but still...) # - if ![runto_main] then { fail "watch tests suppressed" } + if ![runto_main] then { + return + } gdb_test_no_output "set can-use-hw-watchpoints 0" "disable fast watches" diff --git a/gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp b/gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp index 2fe89fe..ec6f3a6 100644 --- a/gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp +++ b/gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp @@ -49,7 +49,6 @@ proc prepare {lang} { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.base/with.exp b/gdb/testsuite/gdb.base/with.exp index 0d53dbe..3a21ab8 100644 --- a/gdb/testsuite/gdb.base/with.exp +++ b/gdb/testsuite/gdb.base/with.exp @@ -209,7 +209,6 @@ with_test_prefix "run control" { clean_restart $binfile if ![runto_main] { - fail "cannot run to main" return } diff --git a/gdb/testsuite/gdb.btrace/buffer-size.exp b/gdb/testsuite/gdb.btrace/buffer-size.exp index ea4e36c..04bf523 100644 --- a/gdb/testsuite/gdb.btrace/buffer-size.exp +++ b/gdb/testsuite/gdb.btrace/buffer-size.exp @@ -28,7 +28,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/data.exp b/gdb/testsuite/gdb.btrace/data.exp index 170d4bc..e12e792 100644 --- a/gdb/testsuite/gdb.btrace/data.exp +++ b/gdb/testsuite/gdb.btrace/data.exp @@ -28,7 +28,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/delta.exp b/gdb/testsuite/gdb.btrace/delta.exp index 0d61e9a..5e0ffef 100644 --- a/gdb/testsuite/gdb.btrace/delta.exp +++ b/gdb/testsuite/gdb.btrace/delta.exp @@ -28,7 +28,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/dlopen.exp b/gdb/testsuite/gdb.btrace/dlopen.exp index 6e717aa..ad77dab 100644 --- a/gdb/testsuite/gdb.btrace/dlopen.exp +++ b/gdb/testsuite/gdb.btrace/dlopen.exp @@ -42,7 +42,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/enable-new-thread.exp b/gdb/testsuite/gdb.btrace/enable-new-thread.exp index 5000ae5..d718e85 100644 --- a/gdb/testsuite/gdb.btrace/enable-new-thread.exp +++ b/gdb/testsuite/gdb.btrace/enable-new-thread.exp @@ -28,7 +28,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/enable-running.exp b/gdb/testsuite/gdb.btrace/enable-running.exp index 08d682e..d8ac675 100644 --- a/gdb/testsuite/gdb.btrace/enable-running.exp +++ b/gdb/testsuite/gdb.btrace/enable-running.exp @@ -33,7 +33,6 @@ save_vars { GDBFLAGS } { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/enable.exp b/gdb/testsuite/gdb.btrace/enable.exp index fdfdce3..ecec5f5 100644 --- a/gdb/testsuite/gdb.btrace/enable.exp +++ b/gdb/testsuite/gdb.btrace/enable.exp @@ -43,7 +43,6 @@ if [prepare_for_testing "failed to prepare" $testfile {} {debug}] { } if ![runto_main] { - untested "failed to run to main" return -1 } @@ -86,23 +85,19 @@ if [skip_gdbserver_tests] { } clean_restart $testfile if ![runto_main] { - untested "failed to run to main" return -1 } if ![runto_main] { - untested "failed to run to main" return -1 } # make sure record-btrace can be enabled after re-run clean_restart $testfile if ![runto_main] { - untested "failed to run to main" return -1 } gdb_test_no_output "record btrace" "enable after restart" if ![runto_main] { - untested "failed to run to main" return -1 } gdb_test_no_output "record btrace" "enable after re-run" diff --git a/gdb/testsuite/gdb.btrace/exception.exp b/gdb/testsuite/gdb.btrace/exception.exp index 7b840e4..ea8ccaf 100755 --- a/gdb/testsuite/gdb.btrace/exception.exp +++ b/gdb/testsuite/gdb.btrace/exception.exp @@ -31,7 +31,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/function_call_history.exp b/gdb/testsuite/gdb.btrace/function_call_history.exp index f995016..284928a 100644 --- a/gdb/testsuite/gdb.btrace/function_call_history.exp +++ b/gdb/testsuite/gdb.btrace/function_call_history.exp @@ -30,7 +30,6 @@ if [prepare_for_testing "failed to prepare" $testfile {} {nopie debug}] { } if ![runto_main] { - untested "failed to run to main" return -1 } @@ -231,7 +230,6 @@ gdb_test "record function-call-history /c 21, +11" [multi_line \ # make sure we can handle incomplete trace with respect to indentation if ![runto_main] { - untested "failed to run to main" return -1 } # navigate to the fib in line 24 above diff --git a/gdb/testsuite/gdb.btrace/gcore.exp b/gdb/testsuite/gdb.btrace/gcore.exp index b0bc32f..3d12f6e 100644 --- a/gdb/testsuite/gdb.btrace/gcore.exp +++ b/gdb/testsuite/gdb.btrace/gcore.exp @@ -28,7 +28,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/instruction_history.exp b/gdb/testsuite/gdb.btrace/instruction_history.exp index 403085c..031ed25 100644 --- a/gdb/testsuite/gdb.btrace/instruction_history.exp +++ b/gdb/testsuite/gdb.btrace/instruction_history.exp @@ -28,7 +28,6 @@ if [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {debu } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/multi-inferior.exp b/gdb/testsuite/gdb.btrace/multi-inferior.exp index 1e028e1..cf02f5f 100644 --- a/gdb/testsuite/gdb.btrace/multi-inferior.exp +++ b/gdb/testsuite/gdb.btrace/multi-inferior.exp @@ -39,7 +39,6 @@ if [prepare_for_testing "failed to prepare" $testfile {} {debug}] { with_test_prefix "inferior 1" { if ![runto_main] { - untested "failed to run to main" return -1 } } @@ -50,7 +49,6 @@ with_test_prefix "inferior 2" { gdb_test "inferior 2" "Switching to inferior 2.*" if ![runto_main] { - untested "inferior 2: failed to run to main" return -1 } @@ -70,7 +68,6 @@ with_test_prefix "inferior 3" { gdb_test "inferior 3" "Switching to inferior 3.*" if ![runto_main] { - untested "inferior 3: failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/multi-thread-step.exp b/gdb/testsuite/gdb.btrace/multi-thread-step.exp index 4ab4482..1df27c2 100644 --- a/gdb/testsuite/gdb.btrace/multi-thread-step.exp +++ b/gdb/testsuite/gdb.btrace/multi-thread-step.exp @@ -30,7 +30,6 @@ if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debu clean_restart $testfile if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/nohist.exp b/gdb/testsuite/gdb.btrace/nohist.exp index 591c721..d7eb7af 100644 --- a/gdb/testsuite/gdb.btrace/nohist.exp +++ b/gdb/testsuite/gdb.btrace/nohist.exp @@ -28,7 +28,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/non-stop.exp b/gdb/testsuite/gdb.btrace/non-stop.exp index e509d65..6f76263 100644 --- a/gdb/testsuite/gdb.btrace/non-stop.exp +++ b/gdb/testsuite/gdb.btrace/non-stop.exp @@ -32,7 +32,6 @@ save_vars { GDBFLAGS } { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/record_goto-step.exp b/gdb/testsuite/gdb.btrace/record_goto-step.exp index fd3b87f..27f4c49 100644 --- a/gdb/testsuite/gdb.btrace/record_goto-step.exp +++ b/gdb/testsuite/gdb.btrace/record_goto-step.exp @@ -28,7 +28,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/record_goto.exp b/gdb/testsuite/gdb.btrace/record_goto.exp index 75d76da..3cde516 100644 --- a/gdb/testsuite/gdb.btrace/record_goto.exp +++ b/gdb/testsuite/gdb.btrace/record_goto.exp @@ -51,7 +51,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/rn-dl-bind.exp b/gdb/testsuite/gdb.btrace/rn-dl-bind.exp index 204e880..9063f91 100644 --- a/gdb/testsuite/gdb.btrace/rn-dl-bind.exp +++ b/gdb/testsuite/gdb.btrace/rn-dl-bind.exp @@ -33,7 +33,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/segv.exp b/gdb/testsuite/gdb.btrace/segv.exp index a505b34..5730697 100644 --- a/gdb/testsuite/gdb.btrace/segv.exp +++ b/gdb/testsuite/gdb.btrace/segv.exp @@ -27,7 +27,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/step.exp b/gdb/testsuite/gdb.btrace/step.exp index 5091867..59751c1 100644 --- a/gdb/testsuite/gdb.btrace/step.exp +++ b/gdb/testsuite/gdb.btrace/step.exp @@ -28,7 +28,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/stepi.exp b/gdb/testsuite/gdb.btrace/stepi.exp index 480c08c..11051b5 100644 --- a/gdb/testsuite/gdb.btrace/stepi.exp +++ b/gdb/testsuite/gdb.btrace/stepi.exp @@ -49,7 +49,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile {}] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/tailcall-only.exp b/gdb/testsuite/gdb.btrace/tailcall-only.exp index 510f90c..2f9c3ed 100644 --- a/gdb/testsuite/gdb.btrace/tailcall-only.exp +++ b/gdb/testsuite/gdb.btrace/tailcall-only.exp @@ -53,7 +53,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/tailcall.exp b/gdb/testsuite/gdb.btrace/tailcall.exp index 07a3ec1..95bc8c7 100644 --- a/gdb/testsuite/gdb.btrace/tailcall.exp +++ b/gdb/testsuite/gdb.btrace/tailcall.exp @@ -49,7 +49,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] { return -1 } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/tsx.exp b/gdb/testsuite/gdb.btrace/tsx.exp index 66f6305..401b1fa 100644 --- a/gdb/testsuite/gdb.btrace/tsx.exp +++ b/gdb/testsuite/gdb.btrace/tsx.exp @@ -31,7 +31,6 @@ if [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {debu } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/unknown_functions.exp b/gdb/testsuite/gdb.btrace/unknown_functions.exp index dc52d75..0226c13 100644 --- a/gdb/testsuite/gdb.btrace/unknown_functions.exp +++ b/gdb/testsuite/gdb.btrace/unknown_functions.exp @@ -34,7 +34,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto test] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/vdso.exp b/gdb/testsuite/gdb.btrace/vdso.exp index 245536a..de484f2 100644 --- a/gdb/testsuite/gdb.btrace/vdso.exp +++ b/gdb/testsuite/gdb.btrace/vdso.exp @@ -31,7 +31,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] { } if ![runto_main] { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp b/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp index 497c5ce..572206f 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing $testfile $testfile $srcfile \ } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp b/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp index 3c803b7..27b713b 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing $testfile $testfile $srcfile \ } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp b/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp index e5c9c03..de7c351 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing $testfile $testfile $srcfile \ } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-cplus-member.exp b/gdb/testsuite/gdb.compile/compile-cplus-member.exp index f6f570d..a702a25 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-member.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-member.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing $testfile $testfile $srcfile \ } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-cplus-method.exp b/gdb/testsuite/gdb.compile/compile-cplus-method.exp index 5fe026a..1c020aa 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-method.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-method.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing $testfile $testfile $srcfile \ } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp b/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp index 9d60290..7563784 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing $testfile $testfile $srcfile \ } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-cplus-nested.exp b/gdb/testsuite/gdb.compile/compile-cplus-nested.exp index d418332..dc8e1d2 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-nested.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-nested.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing $testfile $testfile $srcfile \ } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp b/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp index 745589b..b57d59b 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing $testfile $testfile $srcfile \ } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-tls.exp b/gdb/testsuite/gdb.compile/compile-tls.exp index f65652f..980cfda 100644 --- a/gdb/testsuite/gdb.compile/compile-tls.exp +++ b/gdb/testsuite/gdb.compile/compile-tls.exp @@ -22,7 +22,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.cp/abstract-origin.exp b/gdb/testsuite/gdb.cp/abstract-origin.exp index 4512a79..6c5e489 100644 --- a/gdb/testsuite/gdb.cp/abstract-origin.exp +++ b/gdb/testsuite/gdb.cp/abstract-origin.exp @@ -20,7 +20,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { } if ![runto_main] { - untested abstract-origin return -1 } diff --git a/gdb/testsuite/gdb.cp/baseenum.exp b/gdb/testsuite/gdb.cp/baseenum.exp index 0ad9ae5..0fa8ef7 100644 --- a/gdb/testsuite/gdb.cp/baseenum.exp +++ b/gdb/testsuite/gdb.cp/baseenum.exp @@ -22,7 +22,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.cp/call-method-register.exp b/gdb/testsuite/gdb.cp/call-method-register.exp index bcd8e17..f3c666e 100644 --- a/gdb/testsuite/gdb.cp/call-method-register.exp +++ b/gdb/testsuite/gdb.cp/call-method-register.exp @@ -30,7 +30,6 @@ proc test_call_register_class {} { global gdb_prompt if ![runto_main] { - fail "couldn't run to main" return } diff --git a/gdb/testsuite/gdb.cp/cplabel.exp b/gdb/testsuite/gdb.cp/cplabel.exp index 10ba401..e8f9211 100644 --- a/gdb/testsuite/gdb.cp/cplabel.exp +++ b/gdb/testsuite/gdb.cp/cplabel.exp @@ -24,7 +24,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} { } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.cp/destrprint.exp b/gdb/testsuite/gdb.cp/destrprint.exp index a4e7b11..81ed309 100644 --- a/gdb/testsuite/gdb.cp/destrprint.exp +++ b/gdb/testsuite/gdb.cp/destrprint.exp @@ -20,7 +20,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { } if ![runto_main] { - untested destrprint return -1 } diff --git a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp index f2ccaab..ced186a 100644 --- a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp +++ b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { } if ![runto 'marker'] then { - fail "run to marker" return -1 } diff --git a/gdb/testsuite/gdb.cp/except-multi-location.exp b/gdb/testsuite/gdb.cp/except-multi-location.exp index 921606b..f79e1c8 100644 --- a/gdb/testsuite/gdb.cp/except-multi-location.exp +++ b/gdb/testsuite/gdb.cp/except-multi-location.exp @@ -60,7 +60,6 @@ proc test_multi_libstdcpp {static_bin static_lib} { gdb_load_shlib $binfile_lib if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl b/gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl index cb4528b..4760bd0 100644 --- a/gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl +++ b/gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl @@ -74,7 +74,6 @@ proc build_and_run_test { lang symbols } { clean_restart $binfile if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.cp/local-static.exp b/gdb/testsuite/gdb.cp/local-static.exp index 335c7e3..15bb7cf 100644 --- a/gdb/testsuite/gdb.cp/local-static.exp +++ b/gdb/testsuite/gdb.cp/local-static.exp @@ -150,7 +150,6 @@ proc do_test {lang} { } if ![runto_main] then { - fail "couldn't run to breakpoint" return } diff --git a/gdb/testsuite/gdb.cp/mb-inline.exp b/gdb/testsuite/gdb.cp/mb-inline.exp index e77f139..19a8330 100644 --- a/gdb/testsuite/gdb.cp/mb-inline.exp +++ b/gdb/testsuite/gdb.cp/mb-inline.exp @@ -83,7 +83,6 @@ delete_breakpoints set bp_location [gdb_get_line_number "set multi-line breakpoint here" $hdrfile] if { ![runto_main] } { - fail "can't run to main for multi_line_foo tests." return 0 } diff --git a/gdb/testsuite/gdb.cp/mb-templates.exp b/gdb/testsuite/gdb.cp/mb-templates.exp index 0a18000..3ec71fb 100644 --- a/gdb/testsuite/gdb.cp/mb-templates.exp +++ b/gdb/testsuite/gdb.cp/mb-templates.exp @@ -112,7 +112,6 @@ delete_breakpoints set bp_location [gdb_get_line_number "set multi-line breakpoint here"] if { ![runto_main] } { - fail "can't run to main for multi_line_foo tests." return 0 } diff --git a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp b/gdb/testsuite/gdb.cp/pass-by-ref-2.exp index 84ee717..1435d71 100644 --- a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp +++ b/gdb/testsuite/gdb.cp/pass-by-ref-2.exp @@ -38,7 +38,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} { } if {![runto_main]} { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.cp/pass-by-ref.exp b/gdb/testsuite/gdb.cp/pass-by-ref.exp index d4a8825..ff1ec56 100644 --- a/gdb/testsuite/gdb.cp/pass-by-ref.exp +++ b/gdb/testsuite/gdb.cp/pass-by-ref.exp @@ -343,7 +343,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} { } if {![runto_main]} { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.cp/pr10687.exp b/gdb/testsuite/gdb.cp/pr10687.exp index 088fde3..8bc3169 100644 --- a/gdb/testsuite/gdb.cp/pr10687.exp +++ b/gdb/testsuite/gdb.cp/pr10687.exp @@ -20,7 +20,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { } if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.cp/pr9167.exp b/gdb/testsuite/gdb.cp/pr9167.exp index d88c75d..2486b89 100644 --- a/gdb/testsuite/gdb.cp/pr9167.exp +++ b/gdb/testsuite/gdb.cp/pr9167.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { } if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp index b375f01..93299d1 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp @@ -31,7 +31,6 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile \ } if {![runto_main]} { - untested "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp b/gdb/testsuite/gdb.cp/rvalue-ref-types.exp index 32ca885..23cdbe1 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-types.exp @@ -29,12 +29,10 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile \ # Set it up at a breakpoint so we can play with the variable values. # if {![runto_main]} { - untested "couldn't run to breakpoint" return -1 } if {![runto 'marker1']} { - untested "couldn't run to marker1" return -1 } diff --git a/gdb/testsuite/gdb.cp/save-bp-qualified.exp b/gdb/testsuite/gdb.cp/save-bp-qualified.exp index d779ed6..bcf22f0 100644 --- a/gdb/testsuite/gdb.cp/save-bp-qualified.exp +++ b/gdb/testsuite/gdb.cp/save-bp-qualified.exp @@ -27,7 +27,6 @@ proc restart {} { clean_restart $testfile if ![runto_main] { - untested "could not run to main" return 0 } # Delete all breakpoints so that the "runto_main" breakpoint above diff --git a/gdb/testsuite/gdb.cp/scope-err.exp b/gdb/testsuite/gdb.cp/scope-err.exp index 216665e..685e0bf 100644 --- a/gdb/testsuite/gdb.cp/scope-err.exp +++ b/gdb/testsuite/gdb.cp/scope-err.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug c++}]} { } if {![runto_main]} { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.cp/static-typedef-print.exp b/gdb/testsuite/gdb.cp/static-typedef-print.exp index 3c8e286a..b4b18bf 100644 --- a/gdb/testsuite/gdb.cp/static-typedef-print.exp +++ b/gdb/testsuite/gdb.cp/static-typedef-print.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.cp/step-and-next-inline.exp b/gdb/testsuite/gdb.cp/step-and-next-inline.exp index 13d801b..4997abb 100644 --- a/gdb/testsuite/gdb.cp/step-and-next-inline.exp +++ b/gdb/testsuite/gdb.cp/step-and-next-inline.exp @@ -59,7 +59,6 @@ proc do_test { use_header } { with_test_prefix $prefix { if ![runto_main] { - fail "can't run to main" return } @@ -176,7 +175,6 @@ proc do_test { use_header } { clean_restart ${executable} if ![runto_main] { - fail "can't run to main pass 2" return } diff --git a/gdb/testsuite/gdb.cp/typedef-base.exp b/gdb/testsuite/gdb.cp/typedef-base.exp index 7edc164..7b7bdc4 100644 --- a/gdb/testsuite/gdb.cp/typedef-base.exp +++ b/gdb/testsuite/gdb.cp/typedef-base.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.cp/typeid.exp b/gdb/testsuite/gdb.cp/typeid.exp index 1a2599f..5b9ff91 100644 --- a/gdb/testsuite/gdb.cp/typeid.exp +++ b/gdb/testsuite/gdb.cp/typeid.exp @@ -58,7 +58,6 @@ with_test_prefix "before starting" { } if ![runto_main] { - untested typeid return -1 } diff --git a/gdb/testsuite/gdb.cp/wide_char_types.exp b/gdb/testsuite/gdb.cp/wide_char_types.exp index 03d8502..e11b11d 100644 --- a/gdb/testsuite/gdb.cp/wide_char_types.exp +++ b/gdb/testsuite/gdb.cp/wide_char_types.exp @@ -48,7 +48,6 @@ proc wide_char_types_program {lang} { } if ![runto_main] then { - fail "can't run to main" return 0 } do_test_wide_char $lang "u16" "u32" "wchar" diff --git a/gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp b/gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp index 5f52bc9..752c484 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp @@ -36,7 +36,6 @@ if { [prepare_for_testing "failed to prepare" "${testfile}" $srcfile {nodebug no } if ![runto_main] then { - fail "cannot run to main." continue } diff --git a/gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp b/gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp index e43f59e..0320c11 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp @@ -119,7 +119,6 @@ foreach_with_prefix ranges_sect {ranges rnglists} { gdb_test_no_output "set auto-solib-add off" if { ![runto_main] } { - fail "cannot run to main." return -1 } diff --git a/gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp b/gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp index 2d5a633..9034f4c 100644 --- a/gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp +++ b/gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp @@ -80,4 +80,4 @@ if { [ensure_gdb_index $binfile] == -1 } { clean_restart ${binfile} -runto main message +runto main diff --git a/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp b/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp index 1c36652..d05300e 100644 --- a/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp +++ b/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp @@ -324,7 +324,6 @@ if [prepare_for_testing "failed to prepare" ${testfile} \ gdb_load_shlib ${lib_so} if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp b/gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp index 6b4f5c8..47e163f 100644 --- a/gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp +++ b/gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp @@ -127,7 +127,6 @@ foreach_with_prefix is_64 {false true} { } if { ![runto_main] } { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp b/gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp index 573324a..0ca9dc1 100644 --- a/gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp +++ b/gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp @@ -218,7 +218,6 @@ foreach_with_prefix is_64 {false true} { } if { ![runto_main] } { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.dwarf2/loclists-start-end.exp b/gdb/testsuite/gdb.dwarf2/loclists-start-end.exp index 43ddefc..ce611fb 100644 --- a/gdb/testsuite/gdb.dwarf2/loclists-start-end.exp +++ b/gdb/testsuite/gdb.dwarf2/loclists-start-end.exp @@ -118,7 +118,6 @@ foreach_with_prefix is_64 {false true} { } if { ![runto_main] } { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.fortran/allocated.exp b/gdb/testsuite/gdb.fortran/allocated.exp index 4391c5e..d9308af 100644 --- a/gdb/testsuite/gdb.fortran/allocated.exp +++ b/gdb/testsuite/gdb.fortran/allocated.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/array-slices-bad.exp b/gdb/testsuite/gdb.fortran/array-slices-bad.exp index b9519e6..a6890349 100644 --- a/gdb/testsuite/gdb.fortran/array-slices-bad.exp +++ b/gdb/testsuite/gdb.fortran/array-slices-bad.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/array-slices-sub-slices.exp b/gdb/testsuite/gdb.fortran/array-slices-sub-slices.exp index 98a5da2..4264cec 100644 --- a/gdb/testsuite/gdb.fortran/array-slices-sub-slices.exp +++ b/gdb/testsuite/gdb.fortran/array-slices-sub-slices.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/array-slices.exp b/gdb/testsuite/gdb.fortran/array-slices.exp index 8200a0c..5b01e4f 100644 --- a/gdb/testsuite/gdb.fortran/array-slices.exp +++ b/gdb/testsuite/gdb.fortran/array-slices.exp @@ -56,7 +56,6 @@ proc run_test { repack } { clean_restart ${binfile} if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/associated.exp b/gdb/testsuite/gdb.fortran/associated.exp index 021a6b7..fdd3162 100644 --- a/gdb/testsuite/gdb.fortran/associated.exp +++ b/gdb/testsuite/gdb.fortran/associated.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/block-data.exp b/gdb/testsuite/gdb.fortran/block-data.exp index 73df4ab..ec26cf0 100644 --- a/gdb/testsuite/gdb.fortran/block-data.exp +++ b/gdb/testsuite/gdb.fortran/block-data.exp @@ -31,7 +31,6 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]} { } if ![fortran_runto_main] then { - untested "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/call-no-debug.exp b/gdb/testsuite/gdb.fortran/call-no-debug.exp index a5e9825..3c5172e 100644 --- a/gdb/testsuite/gdb.fortran/call-no-debug.exp +++ b/gdb/testsuite/gdb.fortran/call-no-debug.exp @@ -68,7 +68,6 @@ set some_func [find_mangled_name "some_func"] set string_func [find_mangled_name "string_func"] if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/class-allocatable-array.exp b/gdb/testsuite/gdb.fortran/class-allocatable-array.exp index b98cd4f..b5097df 100644 --- a/gdb/testsuite/gdb.fortran/class-allocatable-array.exp +++ b/gdb/testsuite/gdb.fortran/class-allocatable-array.exp @@ -27,7 +27,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/completion.exp b/gdb/testsuite/gdb.fortran/completion.exp index 9ff3b78..cf01d48 100644 --- a/gdb/testsuite/gdb.fortran/completion.exp +++ b/gdb/testsuite/gdb.fortran/completion.exp @@ -27,7 +27,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/debug-expr.exp b/gdb/testsuite/gdb.fortran/debug-expr.exp index ca1fb97..db2178f 100644 --- a/gdb/testsuite/gdb.fortran/debug-expr.exp +++ b/gdb/testsuite/gdb.fortran/debug-expr.exp @@ -32,7 +32,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} { } if ![fortran_runto_main] { - fail "run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/intvar-array.exp b/gdb/testsuite/gdb.fortran/intvar-array.exp index 1569f51..bed80e7 100644 --- a/gdb/testsuite/gdb.fortran/intvar-array.exp +++ b/gdb/testsuite/gdb.fortran/intvar-array.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/intvar-dynamic-types.exp b/gdb/testsuite/gdb.fortran/intvar-dynamic-types.exp index 16dc603..acac03b 100644 --- a/gdb/testsuite/gdb.fortran/intvar-dynamic-types.exp +++ b/gdb/testsuite/gdb.fortran/intvar-dynamic-types.exp @@ -25,7 +25,6 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/lbound-ubound.exp b/gdb/testsuite/gdb.fortran/lbound-ubound.exp index 7b2efde..489c9ad 100644 --- a/gdb/testsuite/gdb.fortran/lbound-ubound.exp +++ b/gdb/testsuite/gdb.fortran/lbound-ubound.exp @@ -27,7 +27,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp b/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp index 6a249e6..ba9dcd5 100644 --- a/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp +++ b/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp @@ -46,7 +46,6 @@ proc run_tests { lang } { clean_restart ${binfile} if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/pointer-to-pointer.exp b/gdb/testsuite/gdb.fortran/pointer-to-pointer.exp index 306168b..b3e64c5 100644 --- a/gdb/testsuite/gdb.fortran/pointer-to-pointer.exp +++ b/gdb/testsuite/gdb.fortran/pointer-to-pointer.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/print-formatted.exp b/gdb/testsuite/gdb.fortran/print-formatted.exp index 6c2eeb0..d0a2449 100644 --- a/gdb/testsuite/gdb.fortran/print-formatted.exp +++ b/gdb/testsuite/gdb.fortran/print-formatted.exp @@ -26,7 +26,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}] } } if { ![fortran_runto_main] } { - fail "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/print_type.exp b/gdb/testsuite/gdb.fortran/print_type.exp index 11aa0f5..9027a29 100755 --- a/gdb/testsuite/gdb.fortran/print_type.exp +++ b/gdb/testsuite/gdb.fortran/print_type.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/printing-types.exp b/gdb/testsuite/gdb.fortran/printing-types.exp index 2a66eae..860aabb 100644 --- a/gdb/testsuite/gdb.fortran/printing-types.exp +++ b/gdb/testsuite/gdb.fortran/printing-types.exp @@ -23,7 +23,6 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]} { } if {![fortran_runto_main]} then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/ptr-indentation.exp b/gdb/testsuite/gdb.fortran/ptr-indentation.exp index f229489..830166b 100644 --- a/gdb/testsuite/gdb.fortran/ptr-indentation.exp +++ b/gdb/testsuite/gdb.fortran/ptr-indentation.exp @@ -23,7 +23,6 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]} { } if {![fortran_runto_main]} then { - untested "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/rank.exp b/gdb/testsuite/gdb.fortran/rank.exp index 86af711..b2ea5d9 100644 --- a/gdb/testsuite/gdb.fortran/rank.exp +++ b/gdb/testsuite/gdb.fortran/rank.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/shape.exp b/gdb/testsuite/gdb.fortran/shape.exp index 0c41b7b..4e02dc6 100644 --- a/gdb/testsuite/gdb.fortran/shape.exp +++ b/gdb/testsuite/gdb.fortran/shape.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/size.exp b/gdb/testsuite/gdb.fortran/size.exp index 20a9b27..c1363cb 100644 --- a/gdb/testsuite/gdb.fortran/size.exp +++ b/gdb/testsuite/gdb.fortran/size.exp @@ -26,7 +26,6 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-alloc-assoc.exp b/gdb/testsuite/gdb.fortran/vla-alloc-assoc.exp index 2fe86c8..e20e6ca 100644 --- a/gdb/testsuite/gdb.fortran/vla-alloc-assoc.exp +++ b/gdb/testsuite/gdb.fortran/vla-alloc-assoc.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-datatypes.exp b/gdb/testsuite/gdb.fortran/vla-datatypes.exp index eaf4bdf..49894a9 100644 --- a/gdb/testsuite/gdb.fortran/vla-datatypes.exp +++ b/gdb/testsuite/gdb.fortran/vla-datatypes.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ # handled correctly when using as VLA's if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-history.exp b/gdb/testsuite/gdb.fortran/vla-history.exp index 49fb446..918d13b 100644 --- a/gdb/testsuite/gdb.fortran/vla-history.exp +++ b/gdb/testsuite/gdb.fortran/vla-history.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-ptr-info.exp b/gdb/testsuite/gdb.fortran/vla-ptr-info.exp index f329204..a70ca8c 100644 --- a/gdb/testsuite/gdb.fortran/vla-ptr-info.exp +++ b/gdb/testsuite/gdb.fortran/vla-ptr-info.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-ptype-sub.exp b/gdb/testsuite/gdb.fortran/vla-ptype-sub.exp index 162a2eb..fbe36ef 100644 --- a/gdb/testsuite/gdb.fortran/vla-ptype-sub.exp +++ b/gdb/testsuite/gdb.fortran/vla-ptype-sub.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-ptype.exp b/gdb/testsuite/gdb.fortran/vla-ptype.exp index d279cd0..10d593b 100644 --- a/gdb/testsuite/gdb.fortran/vla-ptype.exp +++ b/gdb/testsuite/gdb.fortran/vla-ptype.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-sizeof.exp b/gdb/testsuite/gdb.fortran/vla-sizeof.exp index 6e940cf..510e0d1 100644 --- a/gdb/testsuite/gdb.fortran/vla-sizeof.exp +++ b/gdb/testsuite/gdb.fortran/vla-sizeof.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-type.exp b/gdb/testsuite/gdb.fortran/vla-type.exp index 120c3e6..0ef3b78 100755 --- a/gdb/testsuite/gdb.fortran/vla-type.exp +++ b/gdb/testsuite/gdb.fortran/vla-type.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-value-sub-arbitrary.exp b/gdb/testsuite/gdb.fortran/vla-value-sub-arbitrary.exp index bb47527..3f6c1ab 100644 --- a/gdb/testsuite/gdb.fortran/vla-value-sub-arbitrary.exp +++ b/gdb/testsuite/gdb.fortran/vla-value-sub-arbitrary.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp b/gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp index 0596d9b..9187d33 100644 --- a/gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp +++ b/gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-value-sub.exp b/gdb/testsuite/gdb.fortran/vla-value-sub.exp index 7be327b..92feabb 100644 --- a/gdb/testsuite/gdb.fortran/vla-value-sub.exp +++ b/gdb/testsuite/gdb.fortran/vla-value-sub.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/vla-value.exp b/gdb/testsuite/gdb.fortran/vla-value.exp index 071d2b7..f275472 100644 --- a/gdb/testsuite/gdb.fortran/vla-value.exp +++ b/gdb/testsuite/gdb.fortran/vla-value.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ } if ![fortran_runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.fortran/whatis_type.exp b/gdb/testsuite/gdb.fortran/whatis_type.exp index 02b9e0a..786a46d 100644 --- a/gdb/testsuite/gdb.fortran/whatis_type.exp +++ b/gdb/testsuite/gdb.fortran/whatis_type.exp @@ -24,7 +24,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \ } if ![fortran_runto_main] { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.go/chan.exp b/gdb/testsuite/gdb.go/chan.exp index 616794b..a182c62 100644 --- a/gdb/testsuite/gdb.go/chan.exp +++ b/gdb/testsuite/gdb.go/chan.exp @@ -33,7 +33,6 @@ set bp_location1 [gdb_get_line_number "set breakpoint 1 here"] set bp_location2 [gdb_get_line_number "set breakpoint 2 here"] if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.go/global-local-var-shadow.exp b/gdb/testsuite/gdb.go/global-local-var-shadow.exp index 8b4dde1..aec05a6 100644 --- a/gdb/testsuite/gdb.go/global-local-var-shadow.exp +++ b/gdb/testsuite/gdb.go/global-local-var-shadow.exp @@ -31,7 +31,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] set bp_location1 [gdb_get_line_number "set breakpoint 1 here"] if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.go/handcall.exp b/gdb/testsuite/gdb.go/handcall.exp index a228950..a5772f0 100644 --- a/gdb/testsuite/gdb.go/handcall.exp +++ b/gdb/testsuite/gdb.go/handcall.exp @@ -29,7 +29,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.go/hello.exp b/gdb/testsuite/gdb.go/hello.exp index eadc998..f20336a 100644 --- a/gdb/testsuite/gdb.go/hello.exp +++ b/gdb/testsuite/gdb.go/hello.exp @@ -31,7 +31,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] set bp_location1 [gdb_get_line_number "set breakpoint 1 here"] if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.go/integers.exp b/gdb/testsuite/gdb.go/integers.exp index af1eed2..f6a0b98 100644 --- a/gdb/testsuite/gdb.go/integers.exp +++ b/gdb/testsuite/gdb.go/integers.exp @@ -32,7 +32,6 @@ set bp_location1 [gdb_get_line_number "set breakpoint 1 here"] set bp_location2 [gdb_get_line_number "set breakpoint 2 here"] if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.go/max-depth.exp b/gdb/testsuite/gdb.go/max-depth.exp index 1f8aa8d..d1c7caa 100644 --- a/gdb/testsuite/gdb.go/max-depth.exp +++ b/gdb/testsuite/gdb.go/max-depth.exp @@ -29,7 +29,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.go/methods.exp b/gdb/testsuite/gdb.go/methods.exp index d21853d..2eb4907 100644 --- a/gdb/testsuite/gdb.go/methods.exp +++ b/gdb/testsuite/gdb.go/methods.exp @@ -32,7 +32,6 @@ set bp_location1 {main.T.Foo} set bp_location2 {main.T.Bar} if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.go/package.exp b/gdb/testsuite/gdb.go/package.exp index a46f1e2..de6109b 100644 --- a/gdb/testsuite/gdb.go/package.exp +++ b/gdb/testsuite/gdb.go/package.exp @@ -37,7 +37,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${testfile}1.go ${binfile}2.o" "${binfil clean_restart $testfile if { [go_runto_main] < 0 } { - untested methods return -1 } diff --git a/gdb/testsuite/gdb.go/strings.exp b/gdb/testsuite/gdb.go/strings.exp index 4af0788..6be2df7 100644 --- a/gdb/testsuite/gdb.go/strings.exp +++ b/gdb/testsuite/gdb.go/strings.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.go/types.exp b/gdb/testsuite/gdb.go/types.exp index 19e04e3..632ce9b 100644 --- a/gdb/testsuite/gdb.go/types.exp +++ b/gdb/testsuite/gdb.go/types.exp @@ -29,7 +29,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.go/unsafe.exp b/gdb/testsuite/gdb.go/unsafe.exp index a2bb907..78d7674 100644 --- a/gdb/testsuite/gdb.go/unsafe.exp +++ b/gdb/testsuite/gdb.go/unsafe.exp @@ -29,7 +29,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } if { [go_runto_main] < 0 } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.guile/scm-breakpoint.exp b/gdb/testsuite/gdb.guile/scm-breakpoint.exp index c5f19e1..b3316e4 100644 --- a/gdb/testsuite/gdb.guile/scm-breakpoint.exp +++ b/gdb/testsuite/gdb.guile/scm-breakpoint.exp @@ -492,7 +492,6 @@ proc_with_prefix test_bkpt_temporary { } { clean_restart ${testfile} if ![gdb_guile_runto_main] { - fail "cannot run to main." return 0 } delete_breakpoints diff --git a/gdb/testsuite/gdb.guile/scm-cmd.exp b/gdb/testsuite/gdb.guile/scm-cmd.exp index c2598bb..661c262 100644 --- a/gdb/testsuite/gdb.guile/scm-cmd.exp +++ b/gdb/testsuite/gdb.guile/scm-cmd.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { if { [skip_guile_tests] } { continue } if ![gdb_guile_runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.guile/scm-frame-inline.exp b/gdb/testsuite/gdb.guile/scm-frame-inline.exp index 0ffd1d6..73fdc23 100644 --- a/gdb/testsuite/gdb.guile/scm-frame-inline.exp +++ b/gdb/testsuite/gdb.guile/scm-frame-inline.exp @@ -25,7 +25,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { if { [skip_guile_tests] } { continue } if ![runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.guile/scm-lazy-string.exp b/gdb/testsuite/gdb.guile/scm-lazy-string.exp index 661b154..37cda58 100644 --- a/gdb/testsuite/gdb.guile/scm-lazy-string.exp +++ b/gdb/testsuite/gdb.guile/scm-lazy-string.exp @@ -33,7 +33,6 @@ if { [skip_guile_tests] } { continue } # The following tests require execution. if ![gdb_guile_runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.guile/scm-objfile.exp b/gdb/testsuite/gdb.guile/scm-objfile.exp index df67c14..6707005 100644 --- a/gdb/testsuite/gdb.guile/scm-objfile.exp +++ b/gdb/testsuite/gdb.guile/scm-objfile.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { if { [skip_guile_tests] } { continue } if ![gdb_guile_runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.guile/scm-value.exp b/gdb/testsuite/gdb.guile/scm-value.exp index bd5b149..5fd2bc4 100644 --- a/gdb/testsuite/gdb.guile/scm-value.exp +++ b/gdb/testsuite/gdb.guile/scm-value.exp @@ -310,7 +310,6 @@ proc test_subscript_regression {exefile lang} { clean_restart ${exefile} if ![gdb_guile_runto_main ] { - fail "can't run to main" return } @@ -440,7 +439,6 @@ test_value_hash # The following tests require execution. if ![gdb_guile_runto_main] { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.linespec/keywords.exp b/gdb/testsuite/gdb.linespec/keywords.exp index b0ed18b..8819269 100644 --- a/gdb/testsuite/gdb.linespec/keywords.exp +++ b/gdb/testsuite/gdb.linespec/keywords.exp @@ -23,7 +23,6 @@ if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug}]} { } if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.linespec/ls-errs.exp b/gdb/testsuite/gdb.linespec/ls-errs.exp index 99b0f39..10c5d32 100644 --- a/gdb/testsuite/gdb.linespec/ls-errs.exp +++ b/gdb/testsuite/gdb.linespec/ls-errs.exp @@ -48,7 +48,6 @@ proc do_test {lang} { gdb_test_no_output "set max-completions unlimited" if {![runto_main]} { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.linespec/thread.exp b/gdb/testsuite/gdb.linespec/thread.exp index 578a4da..ab631a0 100644 --- a/gdb/testsuite/gdb.linespec/thread.exp +++ b/gdb/testsuite/gdb.linespec/thread.exp @@ -24,7 +24,6 @@ if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug}]} { } if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp b/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp index 095f436..d01f970 100644 --- a/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp +++ b/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp @@ -26,7 +26,6 @@ if [build_executable $testfile.exp $testfile $srcfile $opts] { mi_clean_restart $binfile if {[mi_runto_main] < 0} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.mi/user-selected-context-sync.exp b/gdb/testsuite/gdb.mi/user-selected-context-sync.exp index 2f1a488..df09da0 100644 --- a/gdb/testsuite/gdb.mi/user-selected-context-sync.exp +++ b/gdb/testsuite/gdb.mi/user-selected-context-sync.exp @@ -402,7 +402,6 @@ proc_with_prefix test_setup { mode } { mi_gdb_load $binfile if { [mi_runto_main] < 0 } { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.modula2/max-depth.exp b/gdb/testsuite/gdb.modula2/max-depth.exp index 631bc1f..be8f8a8 100644 --- a/gdb/testsuite/gdb.modula2/max-depth.exp +++ b/gdb/testsuite/gdb.modula2/max-depth.exp @@ -22,7 +22,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug quiet}]} } if { ![runto_main] } then { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp b/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp index c2b9bce..584916b 100644 --- a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp +++ b/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp @@ -50,7 +50,6 @@ clean_restart ${exec1} # Start the program running, and stop at main. # if ![runto_main] then { - perror "Couldn't run ${binfile1}" return } diff --git a/gdb/testsuite/gdb.multi/dummy-frame-restore.exp b/gdb/testsuite/gdb.multi/dummy-frame-restore.exp index 617862f..1ddc39d 100644 --- a/gdb/testsuite/gdb.multi/dummy-frame-restore.exp +++ b/gdb/testsuite/gdb.multi/dummy-frame-restore.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} { # Inferior 1 stops at f1. if ![runto f1] then { - fail "can't run to f1" return 0 } @@ -42,7 +41,6 @@ delete_breakpoints # Inferior 2 stops at f2. if ![runto f2] then { - fail "can't run to f2" return 0 } diff --git a/gdb/testsuite/gdb.multi/multi-arch-exec.exp b/gdb/testsuite/gdb.multi/multi-arch-exec.exp index 4f36ec8..e9a8abd 100644 --- a/gdb/testsuite/gdb.multi/multi-arch-exec.exp +++ b/gdb/testsuite/gdb.multi/multi-arch-exec.exp @@ -150,7 +150,6 @@ proc do_test { first_arch mode selected_thread } { clean_restart ${from_exec} if ![runto all_started] then { - fail "couldn't run to all_started" return -1 } diff --git a/gdb/testsuite/gdb.multi/multi-arch.exp b/gdb/testsuite/gdb.multi/multi-arch.exp index c1c7791..3340e88 100644 --- a/gdb/testsuite/gdb.multi/multi-arch.exp +++ b/gdb/testsuite/gdb.multi/multi-arch.exp @@ -79,7 +79,7 @@ if { [build_executable "failed to prepare" ${exec2} "${srcfile2}" \ clean_restart ${exec1} if ![runto_main] then { - fail "starting inferior 1" + return } # Add and start inferior 2 @@ -89,7 +89,7 @@ gdb_test "inferior 2" "Switching to inferior 2.*" "switch to inferior 2" gdb_load ${binfile2} if ![runto_main] then { - fail "starting inferior 2" + return } # Check we do have two inferiors loaded. diff --git a/gdb/testsuite/gdb.multi/multi-re-run.exp b/gdb/testsuite/gdb.multi/multi-re-run.exp index 6eda6fa..4d51c1f 100644 --- a/gdb/testsuite/gdb.multi/multi-re-run.exp +++ b/gdb/testsuite/gdb.multi/multi-re-run.exp @@ -80,8 +80,7 @@ proc test_re_run {re_run_inf} { # Run the steady inferior to a breakpoint, and let it stay stopped # there. - if ![runto all_started message] then { - untested "setup failed" + if ![runto all_started] then { return 0 } @@ -95,7 +94,7 @@ proc test_re_run {re_run_inf} { foreach_with_prefix iter {1 2} { delete_breakpoints - if ![runto all_started message] { + if ![runto all_started] { return 0 } diff --git a/gdb/testsuite/gdb.multi/multi-term-settings.exp b/gdb/testsuite/gdb.multi/multi-term-settings.exp index dcc6f2e..2bf2014 100644 --- a/gdb/testsuite/gdb.multi/multi-term-settings.exp +++ b/gdb/testsuite/gdb.multi/multi-term-settings.exp @@ -57,7 +57,6 @@ proc create_inferior {which_inf inf_how} { # Run to main and delete breakpoints. proc my_runto_main {} { if ![runto_main] { - fail "run to main" return 0 } else { # Delete breakpoints otherwise GDB would try to step over diff --git a/gdb/testsuite/gdb.multi/remove-inferiors.exp b/gdb/testsuite/gdb.multi/remove-inferiors.exp index bd56f3c..c0bd5bd 100644 --- a/gdb/testsuite/gdb.multi/remove-inferiors.exp +++ b/gdb/testsuite/gdb.multi/remove-inferiors.exp @@ -54,7 +54,6 @@ proc test_remove_inferiors { } { "load binary" if {![runto_main]} { - fail "couldn't run to main." return } diff --git a/gdb/testsuite/gdb.multi/stop-all-on-exit.exp b/gdb/testsuite/gdb.multi/stop-all-on-exit.exp index 5d16438..4a89ec8 100644 --- a/gdb/testsuite/gdb.multi/stop-all-on-exit.exp +++ b/gdb/testsuite/gdb.multi/stop-all-on-exit.exp @@ -25,7 +25,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { } if {![runto_main]} { - fail "starting inferior 1" return -1 } @@ -42,7 +41,6 @@ gdb_test "add-inferior -exec $binfile" "Added inferior 2.*" \ "add the second inferior" gdb_test "inferior 2" ".*Switching to inferior 2.*" if {![runto_main]} { - fail "starting inferior 2" return -1 } gdb_test "print duration=10" "= 10" diff --git a/gdb/testsuite/gdb.multi/tids-gid-reset.exp b/gdb/testsuite/gdb.multi/tids-gid-reset.exp index e1755f9..e79da42 100644 --- a/gdb/testsuite/gdb.multi/tids-gid-reset.exp +++ b/gdb/testsuite/gdb.multi/tids-gid-reset.exp @@ -67,7 +67,6 @@ with_test_prefix "multi-inferior" { gdb_load ${binfile} if ![runto_main] then { - fail "starting inferior 2" return } diff --git a/gdb/testsuite/gdb.multi/watchpoint-multi-exit.exp b/gdb/testsuite/gdb.multi/watchpoint-multi-exit.exp index 1dff083..24ad1f8 100644 --- a/gdb/testsuite/gdb.multi/watchpoint-multi-exit.exp +++ b/gdb/testsuite/gdb.multi/watchpoint-multi-exit.exp @@ -35,7 +35,6 @@ proc do_test {dispose} { gdb_test_no_output "set detach-on-fork off" if ![runto "child_function"] { - fail "can't run to child_function" return } diff --git a/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp b/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp index 8ad7257..b63cd9c 100644 --- a/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp +++ b/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp @@ -32,7 +32,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ } if { ![runto start_sequence] } then { - fail "run to start_sequence" return } diff --git a/gdb/testsuite/gdb.opt/inline-break.exp b/gdb/testsuite/gdb.opt/inline-break.exp index c96966e..9804b63 100644 --- a/gdb/testsuite/gdb.opt/inline-break.exp +++ b/gdb/testsuite/gdb.opt/inline-break.exp @@ -191,7 +191,6 @@ foreach_with_prefix cmd [list "break" "tbreak"] { # Start with a clean state. delete_breakpoints if {![runto_main]} { - untested "could not run to main" return -1 } @@ -247,7 +246,6 @@ foreach_with_prefix func { clean_restart $binfile if {![runto_main]} { - untested "could not run to main" continue } @@ -265,7 +263,6 @@ with_test_prefix "line number" { clean_restart $binfile if {![runto_main]} { - untested "could not run to main" continue } @@ -290,7 +287,6 @@ with_test_prefix "address" { clean_restart $binfile if {![runto_main]} { - untested "could not run to main" continue } @@ -309,7 +305,6 @@ with_test_prefix "check alignment" { clean_restart $binfile if {![runto_main]} { - untested "could not run to main" continue } diff --git a/gdb/testsuite/gdb.perf/backtrace.exp b/gdb/testsuite/gdb.perf/backtrace.exp index ced653c..3015618 100644 --- a/gdb/testsuite/gdb.perf/backtrace.exp +++ b/gdb/testsuite/gdb.perf/backtrace.exp @@ -52,7 +52,6 @@ PerfTest::assemble { clean_restart $binfile if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.perf/single-step.exp b/gdb/testsuite/gdb.perf/single-step.exp index 7a5d068..a5f33c0 100644 --- a/gdb/testsuite/gdb.perf/single-step.exp +++ b/gdb/testsuite/gdb.perf/single-step.exp @@ -44,7 +44,6 @@ PerfTest::assemble { clean_restart $binfile if ![runto_main] { - fail "can't run to main" return -1 } return 0 diff --git a/gdb/testsuite/gdb.perf/skip-command.exp b/gdb/testsuite/gdb.perf/skip-command.exp index d9f31a7..e57f0a2 100644 --- a/gdb/testsuite/gdb.perf/skip-command.exp +++ b/gdb/testsuite/gdb.perf/skip-command.exp @@ -94,7 +94,6 @@ proc run_skip_bench { kind text } { global SKIP_STEP_COUNT SKIP_DIRECTIVE_COUNT if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.perf/skip-prologue.exp b/gdb/testsuite/gdb.perf/skip-prologue.exp index 7caff66..d4b0ed7 100644 --- a/gdb/testsuite/gdb.perf/skip-prologue.exp +++ b/gdb/testsuite/gdb.perf/skip-prologue.exp @@ -56,7 +56,6 @@ PerfTest::assemble { clean_restart $binfile if ![runto_main] { - fail "can't run to main" return -1 } return 0 diff --git a/gdb/testsuite/gdb.perf/solib.exp b/gdb/testsuite/gdb.perf/solib.exp index e0cd341..512fd0d 100644 --- a/gdb/testsuite/gdb.perf/solib.exp +++ b/gdb/testsuite/gdb.perf/solib.exp @@ -77,7 +77,6 @@ PerfTest::assemble { clean_restart $binfile if ![runto_main] { - fail "can't run to main" return -1 } return 0 diff --git a/gdb/testsuite/gdb.perf/template-breakpoints.exp b/gdb/testsuite/gdb.perf/template-breakpoints.exp index 96c1209..0fa7fd8 100644 --- a/gdb/testsuite/gdb.perf/template-breakpoints.exp +++ b/gdb/testsuite/gdb.perf/template-breakpoints.exp @@ -52,7 +52,6 @@ PerfTest::assemble { clean_restart $binfile if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.python/lib-types.exp b/gdb/testsuite/gdb.python/lib-types.exp index fbc7499..f928b22 100644 --- a/gdb/testsuite/gdb.python/lib-types.exp +++ b/gdb/testsuite/gdb.python/lib-types.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-as-string.exp b/gdb/testsuite/gdb.python/py-as-string.exp index 92db25e..e327d69 100644 --- a/gdb/testsuite/gdb.python/py-as-string.exp +++ b/gdb/testsuite/gdb.python/py-as-string.exp @@ -25,7 +25,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { } if ![runto_main] { - fail "couldn't run to main." return 0 } diff --git a/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp b/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp index 96ae41b..0180fea 100644 --- a/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp +++ b/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp @@ -66,7 +66,6 @@ gdb_load ${binfile} gdb_test_no_output "set print pretty on" if { ![runto_main] } { - fail "failed to run to main" return } diff --git a/gdb/testsuite/gdb.python/py-bad-printers.exp b/gdb/testsuite/gdb.python/py-bad-printers.exp index 708f0e0..dde64c0 100644 --- a/gdb/testsuite/gdb.python/py-bad-printers.exp +++ b/gdb/testsuite/gdb.python/py-bad-printers.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { if { [skip_python_tests] } { continue } if ![runto_main ] then { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.python/py-block.exp b/gdb/testsuite/gdb.python/py-block.exp index fdb7c09..8c4c9a5 100644 --- a/gdb/testsuite/gdb.python/py-block.exp +++ b/gdb/testsuite/gdb.python/py-block.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp b/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp index 4d0e9c5..7eefaa8 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp +++ b/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp @@ -29,8 +29,7 @@ if { [skip_python_tests] } { continue } clean_restart "${testfile}" if ![runto_main] { - perror "could not run to main" - continue + return } # The following will create a breakpoint Python wrapper whose construction will diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp index bd99452..bac9b6e 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-breakpoint.exp @@ -39,7 +39,6 @@ proc_with_prefix test_bkpt_basic { } { gdb_test "python print (gdb.breakpoints())" "\\(\\)" if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -122,7 +121,6 @@ proc_with_prefix test_bkpt_deletion { } { clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -158,7 +156,6 @@ proc_with_prefix test_bkpt_cond_and_cmds { } { clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -216,7 +213,6 @@ proc_with_prefix test_bkpt_invisible { } { clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -262,7 +258,6 @@ proc_with_prefix test_hardware_breakpoints { } { clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -290,7 +285,6 @@ proc_with_prefix test_watchpoints { } { } if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -313,7 +307,6 @@ proc_with_prefix test_bkpt_internal { } { gdb_test_no_output "set can-use-hw-watchpoints 0" "" } if ![runto_main] then { - fail "cannot run to main." return 0 } delete_breakpoints @@ -341,7 +334,6 @@ proc_with_prefix test_bkpt_eval_funcs { } { gdb_test_no_output "set can-use-hw-watchpoints 0" "" } if ![runto_main] then { - fail "cannot run to main." return 0 } delete_breakpoints @@ -455,7 +447,6 @@ proc_with_prefix test_bkpt_temporary { } { clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main." return 0 } delete_breakpoints @@ -574,7 +565,6 @@ proc_with_prefix test_bkpt_explicit_loc {} { clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -660,7 +650,6 @@ proc_with_prefix test_bkpt_qualified {} { set two_location_re "Breakpoint $decimal at $hex:.*2 locations." if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -730,7 +719,6 @@ proc_with_prefix test_bkpt_probe {} { } if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -748,7 +736,6 @@ proc_with_prefix test_catchpoints {} { clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -808,7 +795,6 @@ proc_with_prefix test_bkpt_auto_disable { } { clean_restart ${testfile} if ![runto_main] then { - fail "cannot run to main." return 0 } delete_breakpoints diff --git a/gdb/testsuite/gdb.python/py-cmd.exp b/gdb/testsuite/gdb.python/py-cmd.exp index a1c2a9b..43a96a7 100644 --- a/gdb/testsuite/gdb.python/py-cmd.exp +++ b/gdb/testsuite/gdb.python/py-cmd.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { if { [skip_python_tests] } { continue } if ![runto_main] then { - 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 456d14b..5ecd9df 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp @@ -54,7 +54,6 @@ clean_restart ${testfile} gdb_load_shlib ${lib_sl} if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -105,7 +104,6 @@ gdb_test "source $python_file" "Python script imported.*" \ set cond_line [gdb_get_line_number "Condition Break."] if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -131,8 +129,7 @@ gdb_test "source $python_file" "Python script imported.*" \ "import python scripts, 3" if ![runto call_longjmp_1] then { - perror "couldn't run to breakpoint call_longjmp" - continue + return } gdb_test "python finishbp = SimpleFinishBreakpoint(gdb.newest_frame())" \ @@ -158,7 +155,6 @@ gdb_test "source $python_file" "Python script imported.*" \ if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -184,7 +180,6 @@ gdb_test "source $python_file" "Python script imported.*" \ "import python scripts, 5" if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -212,7 +207,6 @@ gdb_test "source $python_file" "Python script imported.*" \ "import python scripts, 6" if ![runto_main] then { - fail "cannot run to main." return 0 } @@ -239,7 +233,6 @@ gdb_test "print increase(&i)" \ # if ![runto "test_exec_exit"] then { - fail "cannot run to test_exec_exit." return 0 } @@ -252,7 +245,6 @@ gdb_test "continue" "SimpleFinishBreakpoint out of scope.*" "catch out of scope # if ![runto "test_exec_exit"] then { - fail "cannot run to 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 58e086a..1d4974b 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "cannot run to main." return 0 } diff --git a/gdb/testsuite/gdb.python/py-frame-inline.exp b/gdb/testsuite/gdb.python/py-frame-inline.exp index 211c930..59789f9 100644 --- a/gdb/testsuite/gdb.python/py-frame-inline.exp +++ b/gdb/testsuite/gdb.python/py-frame-inline.exp @@ -25,7 +25,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "can't run to function f" return 0 } diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp index 05c7fb0..4c6ede8 100644 --- a/gdb/testsuite/gdb.python/py-frame.exp +++ b/gdb/testsuite/gdb.python/py-frame.exp @@ -30,7 +30,6 @@ if { [skip_python_tests] } { continue } # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-inferior.exp b/gdb/testsuite/gdb.python/py-inferior.exp index 2252215..894b90a 100644 --- a/gdb/testsuite/gdb.python/py-inferior.exp +++ b/gdb/testsuite/gdb.python/py-inferior.exp @@ -38,7 +38,6 @@ switch [get_endianness] { # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-infthread.exp b/gdb/testsuite/gdb.python/py-infthread.exp index e68986b..5bbf7ea 100644 --- a/gdb/testsuite/gdb.python/py-infthread.exp +++ b/gdb/testsuite/gdb.python/py-infthread.exp @@ -40,7 +40,6 @@ gdb_test_multiline "install new_thread event handler" \ # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-objfile.exp b/gdb/testsuite/gdb.python/py-objfile.exp index 89a98a6..bf569f4 100644 --- a/gdb/testsuite/gdb.python/py-objfile.exp +++ b/gdb/testsuite/gdb.python/py-objfile.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "can't run to main" return 0 } @@ -121,7 +120,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile}2 ${srcfile} {nodebug l } if ![runto_main] { - fail "can't run to 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 1aadcae..7fab31d 100644 --- a/gdb/testsuite/gdb.python/py-pending-frame-level.exp +++ b/gdb/testsuite/gdb.python/py-pending-frame-level.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-pp-maint.exp b/gdb/testsuite/gdb.python/py-pp-maint.exp index 4bda85a..b0b4248 100644 --- a/gdb/testsuite/gdb.python/py-pp-maint.exp +++ b/gdb/testsuite/gdb.python/py-pp-maint.exp @@ -33,7 +33,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { if { [skip_python_tests] } { continue } if ![runto_main ] then { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.python/py-pp-registration.exp b/gdb/testsuite/gdb.python/py-pp-registration.exp index f35640a..e08cb60 100644 --- a/gdb/testsuite/gdb.python/py-pp-registration.exp +++ b/gdb/testsuite/gdb.python/py-pp-registration.exp @@ -31,7 +31,6 @@ set remote_python_file [gdb_remote_download host \ ${srcdir}/${subdir}/${testfile}.py] if ![runto_main ] { - fail "can't run to main" return -1 } @@ -42,7 +41,7 @@ proc prepare_test { } { clean_restart ${testfile} set run_to_here [gdb_get_line_number {break to inspect} ${testfile}.c ] - if ![runto ${testfile}.c:$run_to_here message] { + if ![runto ${testfile}.c:$run_to_here] { return 0 } diff --git a/gdb/testsuite/gdb.python/py-progspace.exp b/gdb/testsuite/gdb.python/py-progspace.exp index 39e3324..0a94582 100644 --- a/gdb/testsuite/gdb.python/py-progspace.exp +++ b/gdb/testsuite/gdb.python/py-progspace.exp @@ -53,7 +53,6 @@ gdb_test "python print (progspace.random_attribute)" "42" \ "Verify set of random attribute in progspace" if {![runto_main]} { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.python/py-rbreak.exp b/gdb/testsuite/gdb.python/py-rbreak.exp index c045290..bd93bd8 100644 --- a/gdb/testsuite/gdb.python/py-rbreak.exp +++ b/gdb/testsuite/gdb.python/py-rbreak.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" ${testfile} [list $srcfile $srcfile if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp index 3df8e74..be3b501 100644 --- a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp +++ b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp @@ -39,7 +39,6 @@ if { [skip_python_tests] } { } if { ![runto_main] } { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.python/py-record-btrace.exp b/gdb/testsuite/gdb.python/py-record-btrace.exp index bf0fa18..acb3651 100644 --- a/gdb/testsuite/gdb.python/py-record-btrace.exp +++ b/gdb/testsuite/gdb.python/py-record-btrace.exp @@ -36,7 +36,6 @@ if { [skip_python_tests] } { } if ![runto_main ] then { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.python/py-record-full.exp b/gdb/testsuite/gdb.python/py-record-full.exp index 34c4cad..0b86f6b 100644 --- a/gdb/testsuite/gdb.python/py-record-full.exp +++ b/gdb/testsuite/gdb.python/py-record-full.exp @@ -36,7 +36,6 @@ if { [skip_python_tests] } { } if ![runto_main ] then { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.python/py-recurse-unwind.exp b/gdb/testsuite/gdb.python/py-recurse-unwind.exp index 0466131..4f750d2 100644 --- a/gdb/testsuite/gdb.python/py-recurse-unwind.exp +++ b/gdb/testsuite/gdb.python/py-recurse-unwind.exp @@ -41,7 +41,6 @@ gdb_test "source ${pyfile}" "Python script imported" \ # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp b/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp index f7e80bf..e336c22 100644 --- a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp +++ b/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp @@ -30,7 +30,6 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile \ if {[skip_python_tests]} { continue } if {![runto_main]} { - untested "couldn't run to main" return -1 } diff --git a/gdb/testsuite/gdb.python/py-shared.exp b/gdb/testsuite/gdb.python/py-shared.exp index 5ce786f..891f21b 100644 --- a/gdb/testsuite/gdb.python/py-shared.exp +++ b/gdb/testsuite/gdb.python/py-shared.exp @@ -49,7 +49,6 @@ if { [skip_python_tests] } { continue } # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-symbol.exp b/gdb/testsuite/gdb.python/py-symbol.exp index 98acdbe..cbc482c 100644 --- a/gdb/testsuite/gdb.python/py-symbol.exp +++ b/gdb/testsuite/gdb.python/py-symbol.exp @@ -105,7 +105,6 @@ gdb_test "python print (gdb.lookup_static_symbol ('qq') is None)" \ "True" "lookup_static_symbol for global var" if ![runto_main] then { - fail "can't run to main" return 0 } @@ -214,7 +213,6 @@ gdb_test "python print (gdb.lookup_static_symbol ('(anonymous namespace)::anon') "10" "print value of anon" if ![runto_main] then { - fail "can't run to main" return 0 } @@ -243,7 +241,6 @@ gdb_test "python print (cplusfunc.addr_class == gdb.SYMBOL_LOC_BLOCK)" "True" "t # Start with a fresh gdb. clean_restart ${binfile} if ![runto_main] then { - fail "cannot run to main." return 0 } diff --git a/gdb/testsuite/gdb.python/py-symtab.exp b/gdb/testsuite/gdb.python/py-symtab.exp index 3236b63..695bbe8 100644 --- a/gdb/testsuite/gdb.python/py-symtab.exp +++ b/gdb/testsuite/gdb.python/py-symtab.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-unwind-inline.exp b/gdb/testsuite/gdb.python/py-unwind-inline.exp index 36d918a..5619895 100644 --- a/gdb/testsuite/gdb.python/py-unwind-inline.exp +++ b/gdb/testsuite/gdb.python/py-unwind-inline.exp @@ -30,7 +30,6 @@ if { [skip_python_tests] } { continue } # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-unwind-maint.exp b/gdb/testsuite/gdb.python/py-unwind-maint.exp index 8e22cbf..6604fd3 100644 --- a/gdb/testsuite/gdb.python/py-unwind-maint.exp +++ b/gdb/testsuite/gdb.python/py-unwind-maint.exp @@ -30,7 +30,6 @@ if { [skip_python_tests] } { continue } set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py] if ![runto_main ] then { - fail "can't run to 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 7ae3a5b..773bc70 100644 --- a/gdb/testsuite/gdb.python/py-unwind-user-regs.exp +++ b/gdb/testsuite/gdb.python/py-unwind-user-regs.exp @@ -48,7 +48,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { if { [skip_python_tests] } { continue } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-unwind.exp b/gdb/testsuite/gdb.python/py-unwind.exp index c4364a9..df4b840 100644 --- a/gdb/testsuite/gdb.python/py-unwind.exp +++ b/gdb/testsuite/gdb.python/py-unwind.exp @@ -38,7 +38,6 @@ if { ![istarget x86_64-*-* ] || ![is_lp64_target] } { continue } # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp index d9f1a76..f4b7c23 100644 --- a/gdb/testsuite/gdb.python/py-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -624,7 +624,6 @@ test_add_to_history # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index bc670ce..a81cd5c 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -218,7 +218,6 @@ clean_restart ${testfile} # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } @@ -433,7 +432,6 @@ clean_restart ${testfile} # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } @@ -489,7 +487,6 @@ clean_restart ${testfile} # The following tests require execution. if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp b/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp index 5ebc8b5..27c2a77 100644 --- a/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp +++ b/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp @@ -30,7 +30,6 @@ if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.reverse/insn-reverse.exp b/gdb/testsuite/gdb.reverse/insn-reverse.exp index baebaae..47f0166 100644 --- a/gdb/testsuite/gdb.reverse/insn-reverse.exp +++ b/gdb/testsuite/gdb.reverse/insn-reverse.exp @@ -24,7 +24,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ return -1 } if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp b/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp index d4802eb..d0d6454 100644 --- a/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp +++ b/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp @@ -34,7 +34,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp b/gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp index dad43d7..7537a01 100644 --- a/gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp +++ b/gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if { ![runto_main] } { - untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.server/extended-remote-restart.exp b/gdb/testsuite/gdb.server/extended-remote-restart.exp index 9480a0f..b960459 100644 --- a/gdb/testsuite/gdb.server/extended-remote-restart.exp +++ b/gdb/testsuite/gdb.server/extended-remote-restart.exp @@ -61,7 +61,6 @@ proc test_reload { do_kill_p follow_child_p } { clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.stabs/gdb11479.exp b/gdb/testsuite/gdb.stabs/gdb11479.exp index e14999f..75caf1c 100644 --- a/gdb/testsuite/gdb.stabs/gdb11479.exp +++ b/gdb/testsuite/gdb.stabs/gdb11479.exp @@ -22,7 +22,6 @@ set testfile "gdb11479" proc do_test {version} { if ![runto_main] { - fail "can't run to main $version" return -1 } gdb_test "rb test" "" "set breakpoints $version" diff --git a/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp b/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp index b2fef9f..4c2e2b7 100644 --- a/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp +++ b/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp @@ -53,7 +53,6 @@ proc test { non_stop } { } if ![runto_main] { - fail "cannot run to main" return -1 } @@ -84,7 +83,6 @@ proc test { non_stop } { gdb_load $binfile if ![runto_main] { - fail "cannot run to main" return -1 } } diff --git a/gdb/testsuite/gdb.threads/async.exp b/gdb/testsuite/gdb.threads/async.exp index c49deb1..112965e 100644 --- a/gdb/testsuite/gdb.threads/async.exp +++ b/gdb/testsuite/gdb.threads/async.exp @@ -35,7 +35,6 @@ proc test_current_thread {expected_thr} { clean_restart $binfile if {![runto "all_started"]} { - fail "could not run to all_started" return } diff --git a/gdb/testsuite/gdb.threads/clone-new-thread-event.exp b/gdb/testsuite/gdb.threads/clone-new-thread-event.exp index 4911a73..562c3a6 100644 --- a/gdb/testsuite/gdb.threads/clone-new-thread-event.exp +++ b/gdb/testsuite/gdb.threads/clone-new-thread-event.exp @@ -25,7 +25,6 @@ if { [prepare_for_testing "failed to prepare" clone-new-thread-event] } { } if { ![runto_main] } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/clone-thread_db.exp b/gdb/testsuite/gdb.threads/clone-thread_db.exp index 91608c3..2d1f8ef 100644 --- a/gdb/testsuite/gdb.threads/clone-thread_db.exp +++ b/gdb/testsuite/gdb.threads/clone-thread_db.exp @@ -27,7 +27,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/continue-pending-status.exp b/gdb/testsuite/gdb.threads/continue-pending-status.exp index c0321c3..2c3bc12 100644 --- a/gdb/testsuite/gdb.threads/continue-pending-status.exp +++ b/gdb/testsuite/gdb.threads/continue-pending-status.exp @@ -29,7 +29,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] } if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/current-lwp-dead.exp b/gdb/testsuite/gdb.threads/current-lwp-dead.exp index 09b21d4..2111ea2 100644 --- a/gdb/testsuite/gdb.threads/current-lwp-dead.exp +++ b/gdb/testsuite/gdb.threads/current-lwp-dead.exp @@ -28,7 +28,6 @@ if { [prepare_for_testing "failed to prepare" current-lwp-dead] } { } if {[runto_main] <= 0} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/fork-child-threads.exp b/gdb/testsuite/gdb.threads/fork-child-threads.exp index 2142fff..fffb0de 100644 --- a/gdb/testsuite/gdb.threads/fork-child-threads.exp +++ b/gdb/testsuite/gdb.threads/fork-child-threads.exp @@ -27,7 +27,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/fork-plus-threads.exp b/gdb/testsuite/gdb.threads/fork-plus-threads.exp index 7fe3c60..2300279 100644 --- a/gdb/testsuite/gdb.threads/fork-plus-threads.exp +++ b/gdb/testsuite/gdb.threads/fork-plus-threads.exp @@ -46,7 +46,6 @@ proc do_test { detach-on-fork } { set GDBFLAGS $saved_gdbflags if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/fork-thread-pending.exp b/gdb/testsuite/gdb.threads/fork-thread-pending.exp index 8f38f78..ec6d983 100644 --- a/gdb/testsuite/gdb.threads/fork-thread-pending.exp +++ b/gdb/testsuite/gdb.threads/fork-thread-pending.exp @@ -28,7 +28,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } @@ -86,7 +85,6 @@ gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp b/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp index 288ee9b..c1e910b 100644 --- a/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp +++ b/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp @@ -39,7 +39,6 @@ proc probe_displaced_stepping_support {} { gdb_test_no_output "set displaced on" if ![runto_main] then { - fail "can't run to main" return 0 } @@ -79,7 +78,6 @@ proc do_test { cond_bp_target detach_on_fork displaced } { set GDBFLAGS $saved_gdbflags if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/gcore-thread.exp b/gdb/testsuite/gdb.threads/gcore-thread.exp index 35c75f7..142c04b 100644 --- a/gdb/testsuite/gdb.threads/gcore-thread.exp +++ b/gdb/testsuite/gdb.threads/gcore-thread.exp @@ -56,7 +56,6 @@ set nl "\[\r\n\]+" set timeout 30 if { ! [ runto_main ] } then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp index 11c45c3..8914eaa 100644 --- a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp +++ b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp @@ -50,7 +50,6 @@ proc get_dummy_frame_number { } { clean_restart ${binfile} if { ![runto_main] } { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/interrupt-while-step-over.exp b/gdb/testsuite/gdb.threads/interrupt-while-step-over.exp index a9304fc..5f22392 100644 --- a/gdb/testsuite/gdb.threads/interrupt-while-step-over.exp +++ b/gdb/testsuite/gdb.threads/interrupt-while-step-over.exp @@ -24,7 +24,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ } if {![runto_main]} { - fail "can't run to main" return -1 } @@ -175,7 +174,6 @@ proc testdriver {displaced} { gdb_test_no_output "set displaced-stepping $displaced" if ![runto all_started] { - fail "couldn't run to all_started" return } set break_line [gdb_get_line_number "set breakpoint here"] diff --git a/gdb/testsuite/gdb.threads/interrupted-hand-call.exp b/gdb/testsuite/gdb.threads/interrupted-hand-call.exp index e6d8066..b9d4034 100644 --- a/gdb/testsuite/gdb.threads/interrupted-hand-call.exp +++ b/gdb/testsuite/gdb.threads/interrupted-hand-call.exp @@ -34,7 +34,6 @@ if [target_info exists gdb,cannot_call_functions] { clean_restart ${binfile} if { ![runto_main] } { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/kill.exp b/gdb/testsuite/gdb.threads/kill.exp index c984d45..27464d2 100644 --- a/gdb/testsuite/gdb.threads/kill.exp +++ b/gdb/testsuite/gdb.threads/kill.exp @@ -39,7 +39,6 @@ proc test {threaded} { } if { ![runto_main] } then { - fail "run to main" return } diff --git a/gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp b/gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp index 46a8af8..0a23fde 100644 --- a/gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp +++ b/gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp @@ -35,7 +35,6 @@ clean_restart ${binfile} gdb_test_no_output "set can-use-hw-watchpoints 1" "" if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp b/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp index 5ffe929..921c213 100644 --- a/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp +++ b/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp @@ -30,7 +30,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ clean_restart "${binfile}" if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp b/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp index b0716bb..2401cf5 100644 --- a/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp +++ b/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" \ } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/non-ldr-exit.exp b/gdb/testsuite/gdb.threads/non-ldr-exit.exp index f3ed9a0..beab8af 100644 --- a/gdb/testsuite/gdb.threads/non-ldr-exit.exp +++ b/gdb/testsuite/gdb.threads/non-ldr-exit.exp @@ -23,7 +23,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads} } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/omp-par-scope.exp b/gdb/testsuite/gdb.threads/omp-par-scope.exp index b07855c..f250965 100644 --- a/gdb/testsuite/gdb.threads/omp-par-scope.exp +++ b/gdb/testsuite/gdb.threads/omp-par-scope.exp @@ -53,7 +53,6 @@ if {[info procs gdb_openmp_setup] != ""} { } if {![runto_main]} { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/pending-step.exp b/gdb/testsuite/gdb.threads/pending-step.exp index 208a93f..22691d8 100644 --- a/gdb/testsuite/gdb.threads/pending-step.exp +++ b/gdb/testsuite/gdb.threads/pending-step.exp @@ -57,7 +57,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp index ab5a82b..cabbc4f 100644 --- a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp +++ b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp @@ -217,7 +217,6 @@ proc test_detach {multi_process cmd} { clean_restart ${binfile} if ![runto_main] { - fail "can't run to main" return -1 } @@ -246,7 +245,6 @@ proc test_detach_watch {wp multi_process cmd} { clean_restart ${binfile} if ![runto_main] { - fail "can't run to main" return -1 } @@ -295,7 +293,6 @@ proc test_detach_killed_outside {multi_process cmd} { clean_restart ${binfile} if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp b/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp index 7a234e5..7558d37 100644 --- a/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp +++ b/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp @@ -46,7 +46,6 @@ proc do_test { non_stop cond_bp_target } { set GDBFLAGS $saved_gdbflags if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/queue-signal.exp b/gdb/testsuite/gdb.threads/queue-signal.exp index ca06ce7..ae46ff1 100644 --- a/gdb/testsuite/gdb.threads/queue-signal.exp +++ b/gdb/testsuite/gdb.threads/queue-signal.exp @@ -23,7 +23,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ clean_restart ${binfile} if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/reconnect-signal.exp b/gdb/testsuite/gdb.threads/reconnect-signal.exp index 2b5ba5d..a181619 100644 --- a/gdb/testsuite/gdb.threads/reconnect-signal.exp +++ b/gdb/testsuite/gdb.threads/reconnect-signal.exp @@ -34,7 +34,6 @@ if { [gdb_compile_pthreads \ clean_restart $executable if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp b/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp index bef125c..4d754ef 100644 --- a/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp +++ b/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp @@ -41,7 +41,6 @@ proc test { step_over } { clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp b/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp index 78ded0d..bb58b7e 100644 --- a/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp +++ b/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp @@ -38,7 +38,6 @@ proc test { schedlock } { clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp b/gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp index c635fac..138e836 100644 --- a/gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp +++ b/gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp @@ -35,7 +35,6 @@ proc test { command } { clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/signal-sigtrap.exp b/gdb/testsuite/gdb.threads/signal-sigtrap.exp index f5dc7fe..3e4ceeb 100644 --- a/gdb/testsuite/gdb.threads/signal-sigtrap.exp +++ b/gdb/testsuite/gdb.threads/signal-sigtrap.exp @@ -38,7 +38,6 @@ proc test { sigtrap_thread } { clean_restart ${binfile} if ![runto "thread_function"] then { - fail "can't run to thread_function" return 0 } diff --git a/gdb/testsuite/gdb.threads/sigthread.exp b/gdb/testsuite/gdb.threads/sigthread.exp index 867aef9..a9d1688 100644 --- a/gdb/testsuite/gdb.threads/sigthread.exp +++ b/gdb/testsuite/gdb.threads/sigthread.exp @@ -24,7 +24,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/stop-with-handle.exp b/gdb/testsuite/gdb.threads/stop-with-handle.exp index 5e0f4da..2cbe0e1 100644 --- a/gdb/testsuite/gdb.threads/stop-with-handle.exp +++ b/gdb/testsuite/gdb.threads/stop-with-handle.exp @@ -29,7 +29,6 @@ if {[prepare_for_testing "failed to prepare" \ } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/thread-specific-bp.exp b/gdb/testsuite/gdb.threads/thread-specific-bp.exp index c59a65b..331f947 100644 --- a/gdb/testsuite/gdb.threads/thread-specific-bp.exp +++ b/gdb/testsuite/gdb.threads/thread-specific-bp.exp @@ -50,7 +50,6 @@ proc check_thread_specific_breakpoint {mode} { global gdb_prompt if ![runto_main] { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp b/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp index 042691b..3c46b8a 100644 --- a/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp +++ b/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp @@ -34,7 +34,6 @@ if [target_info exists gdb,cannot_call_functions] { clean_restart ${binfile} if { ![runto_main] } { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/thread_check.exp b/gdb/testsuite/gdb.threads/thread_check.exp index 441e3fe..89f76ed 100644 --- a/gdb/testsuite/gdb.threads/thread_check.exp +++ b/gdb/testsuite/gdb.threads/thread_check.exp @@ -42,7 +42,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 1 } diff --git a/gdb/testsuite/gdb.threads/thread_events.exp b/gdb/testsuite/gdb.threads/thread_events.exp index 31e4d02..2082d34 100644 --- a/gdb/testsuite/gdb.threads/thread_events.exp +++ b/gdb/testsuite/gdb.threads/thread_events.exp @@ -113,7 +113,6 @@ proc test_thread_messages {enabled} { # The initial thread may log a 'New Thread' message, but we don't # check for it. if ![runto_main] then { - fail "can't run to main $enabled_string" return 1 } diff --git a/gdb/testsuite/gdb.threads/threadapply.exp b/gdb/testsuite/gdb.threads/threadapply.exp index ebc1cf1..958339d 100644 --- a/gdb/testsuite/gdb.threads/threadapply.exp +++ b/gdb/testsuite/gdb.threads/threadapply.exp @@ -32,7 +32,6 @@ clean_restart ${binfile} # if ![runto_main] then { - fail "can't run to main" return 0 } @@ -77,7 +76,6 @@ proc thr_apply_detach {thread_set} { clean_restart ${binfile} if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/tid-reuse.exp b/gdb/testsuite/gdb.threads/tid-reuse.exp index 8ac1f5b..4227364 100644 --- a/gdb/testsuite/gdb.threads/tid-reuse.exp +++ b/gdb/testsuite/gdb.threads/tid-reuse.exp @@ -23,7 +23,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile { debug pthreads } if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.threads/tls-nodebug.exp b/gdb/testsuite/gdb.threads/tls-nodebug.exp index 19eb9a0..ad637d3 100644 --- a/gdb/testsuite/gdb.threads/tls-nodebug.exp +++ b/gdb/testsuite/gdb.threads/tls-nodebug.exp @@ -28,7 +28,6 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/tls-shared.exp b/gdb/testsuite/gdb.threads/tls-shared.exp index 4efa226..6c3c2d8 100644 --- a/gdb/testsuite/gdb.threads/tls-shared.exp +++ b/gdb/testsuite/gdb.threads/tls-shared.exp @@ -39,7 +39,6 @@ clean_restart ${binfile} gdb_load_shlib ${binfile_lib} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/tls-so_extern.exp b/gdb/testsuite/gdb.threads/tls-so_extern.exp index c3f114b..2f358a3 100644 --- a/gdb/testsuite/gdb.threads/tls-so_extern.exp +++ b/gdb/testsuite/gdb.threads/tls-so_extern.exp @@ -38,7 +38,6 @@ clean_restart ${binfile} gdb_load_shlib ${binfile_lib} if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/tls.exp b/gdb/testsuite/gdb.threads/tls.exp index 954e292..a416d81 100644 --- a/gdb/testsuite/gdb.threads/tls.exp +++ b/gdb/testsuite/gdb.threads/tls.exp @@ -165,7 +165,6 @@ gdb_test_multiple "print a_thread_local" "" { } if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp b/gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp index c7839d0..351a8dd 100644 --- a/gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp +++ b/gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp @@ -31,7 +31,6 @@ proc test_vfork {detach} { clean_restart $binfile if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp b/gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp index 4b37836..7a0ec6e 100644 --- a/gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp +++ b/gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp @@ -31,7 +31,6 @@ proc test_vfork {detach} { clean_restart $binfile if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/watchthreads.exp b/gdb/testsuite/gdb.threads/watchthreads.exp index 5763002..011e952 100644 --- a/gdb/testsuite/gdb.threads/watchthreads.exp +++ b/gdb/testsuite/gdb.threads/watchthreads.exp @@ -45,7 +45,6 @@ gdb_test_no_output "set can-use-hw-watchpoints 1" "" # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/watchthreads2.exp b/gdb/testsuite/gdb.threads/watchthreads2.exp index 0b60b0e..bd9f0cd 100644 --- a/gdb/testsuite/gdb.threads/watchthreads2.exp +++ b/gdb/testsuite/gdb.threads/watchthreads2.exp @@ -42,7 +42,6 @@ gdb_test_no_output "set can-use-hw-watchpoints 1" "" # if ![runto_main] then { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/gdb.threads/wp-replication.exp b/gdb/testsuite/gdb.threads/wp-replication.exp index 81eee15..3515f8c 100644 --- a/gdb/testsuite/gdb.threads/wp-replication.exp +++ b/gdb/testsuite/gdb.threads/wp-replication.exp @@ -43,7 +43,6 @@ gdb_test_no_output "set can-use-hw-watchpoints 1" "" # Run to `main' where we begin our tests. if ![runto_main] then { - fail "failed to run to main" return 0 } diff --git a/gdb/testsuite/gdb.trace/actions-changed.exp b/gdb/testsuite/gdb.trace/actions-changed.exp index 453af1f..44e9ad0 100644 --- a/gdb/testsuite/gdb.trace/actions-changed.exp +++ b/gdb/testsuite/gdb.trace/actions-changed.exp @@ -165,7 +165,6 @@ proc test_actions_changed { } { clean_restart $testfile if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/actions.exp b/gdb/testsuite/gdb.trace/actions.exp index 787df23..7d3bd65 100644 --- a/gdb/testsuite/gdb.trace/actions.exp +++ b/gdb/testsuite/gdb.trace/actions.exp @@ -247,7 +247,6 @@ gdb_load $binfile gdb_breakpoint "main" gdb_run_cmd if {[gdb_test "" "Breakpoint .*"] != 0} { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.trace/backtrace.exp b/gdb/testsuite/gdb.trace/backtrace.exp index 9a03ca4..dccd9ad 100644 --- a/gdb/testsuite/gdb.trace/backtrace.exp +++ b/gdb/testsuite/gdb.trace/backtrace.exp @@ -32,7 +32,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/change-loc.exp b/gdb/testsuite/gdb.trace/change-loc.exp index f2ed8fd..f3caa74 100644 --- a/gdb/testsuite/gdb.trace/change-loc.exp +++ b/gdb/testsuite/gdb.trace/change-loc.exp @@ -54,7 +54,6 @@ gdb_load_shlib $lib_sl1 gdb_load_shlib $lib_sl2 if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -75,7 +74,6 @@ proc tracepoint_change_loc_1 { trace_type } { clean_restart ${testfile} if ![runto_main] { - fail "can't run to main" return -1 } gdb_test_no_output "delete break 1" @@ -303,7 +301,6 @@ proc tracepoint_install_in_trace_disabled { trace_type } { clean_restart ${testfile} if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.trace/circ.exp b/gdb/testsuite/gdb.trace/circ.exp index 820f569..f3c6b6c 100644 --- a/gdb/testsuite/gdb.trace/circ.exp +++ b/gdb/testsuite/gdb.trace/circ.exp @@ -74,7 +74,6 @@ proc run_trace_experiment { } { } if { ![runto_main] } { - fail "can't run to main to check for trace support" return -1 } @@ -210,7 +209,6 @@ with_test_prefix "normal buffer" { clean_restart $testfile if { ![runto_main] } { - fail "can't run to main" return 1 } @@ -234,7 +232,6 @@ with_test_prefix "small buffer" { clean_restart $testfile if { ![runto_main] } { - fail "can't run to main" return 1 } @@ -260,7 +257,6 @@ with_test_prefix "circular buffer" { clean_restart $testfile if { ![runto_main] } { - fail "can't run to main" return 1 } diff --git a/gdb/testsuite/gdb.trace/disconnected-tracing.exp b/gdb/testsuite/gdb.trace/disconnected-tracing.exp index 88e8c9e..b26c80e 100644 --- a/gdb/testsuite/gdb.trace/disconnected-tracing.exp +++ b/gdb/testsuite/gdb.trace/disconnected-tracing.exp @@ -33,7 +33,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -53,7 +52,6 @@ proc disconnected_tracing { } { # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -116,7 +114,6 @@ proc disconnected_tfind { } { # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.trace/entry-values.exp b/gdb/testsuite/gdb.trace/entry-values.exp index 3695a1e..bd8a8c5 100644 --- a/gdb/testsuite/gdb.trace/entry-values.exp +++ b/gdb/testsuite/gdb.trace/entry-values.exp @@ -173,7 +173,6 @@ if {[gdb_compile [list ${binfile}1.o ${binfile}2.o] \ clean_restart ${testfile} if ![runto_main] { - fail "can't run to main" return -1 } @@ -208,7 +207,6 @@ clean_restart $binfile load_lib "trace-support.exp" if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/ftrace-lock.exp b/gdb/testsuite/gdb.trace/ftrace-lock.exp index 2c87b85..33842cf 100644 --- a/gdb/testsuite/gdb.trace/ftrace-lock.exp +++ b/gdb/testsuite/gdb.trace/ftrace-lock.exp @@ -45,7 +45,6 @@ if { [gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $optio clean_restart ${testfile} if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -68,7 +67,6 @@ if { [gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $optio clean_restart ${executable} if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/ftrace.exp b/gdb/testsuite/gdb.trace/ftrace.exp index 902d172..18ce9c7 100644 --- a/gdb/testsuite/gdb.trace/ftrace.exp +++ b/gdb/testsuite/gdb.trace/ftrace.exp @@ -36,7 +36,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -60,7 +59,6 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ clean_restart ${executable} if ![runto_main] { - fail "can't run to main for ftrace tests" return 0 } diff --git a/gdb/testsuite/gdb.trace/infotrace.exp b/gdb/testsuite/gdb.trace/infotrace.exp index 16f1897..d100e16 100644 --- a/gdb/testsuite/gdb.trace/infotrace.exp +++ b/gdb/testsuite/gdb.trace/infotrace.exp @@ -108,7 +108,6 @@ gdb_trace_setactions "collect on tracepoint 1" "1" \ "collect gdb_struct1_test" "^$" gdb_run_cmd if {[gdb_test "" "Breakpoint ${decimal}, main.*"] != 0} { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.trace/mi-trace-frame-collected.exp b/gdb/testsuite/gdb.trace/mi-trace-frame-collected.exp index eefbb4b..832f87a 100644 --- a/gdb/testsuite/gdb.trace/mi-trace-frame-collected.exp +++ b/gdb/testsuite/gdb.trace/mi-trace-frame-collected.exp @@ -27,7 +27,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}] } } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/mi-trace-unavailable.exp b/gdb/testsuite/gdb.trace/mi-trace-unavailable.exp index 27194a1..7282454 100644 --- a/gdb/testsuite/gdb.trace/mi-trace-unavailable.exp +++ b/gdb/testsuite/gdb.trace/mi-trace-unavailable.exp @@ -22,7 +22,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug nopi } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/mi-traceframe-changed.exp b/gdb/testsuite/gdb.trace/mi-traceframe-changed.exp index d441689..e0d3135 100644 --- a/gdb/testsuite/gdb.trace/mi-traceframe-changed.exp +++ b/gdb/testsuite/gdb.trace/mi-traceframe-changed.exp @@ -107,7 +107,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ clean_restart $executable if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp b/gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp index 58503a3..d2e9ae4 100644 --- a/gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp +++ b/gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp @@ -70,7 +70,6 @@ proc test_reconnect { } { gdb_load_shlib $lib_sl1 gdb_load_shlib $lib_sl2 if ![runto_main] then { - fail "can't run to main" return 0 } # Create tracepoints on marker and main, and leave them in the @@ -251,7 +250,6 @@ gdb_load_shlib $lib_sl1 gdb_load_shlib $lib_sl2 if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/mi-tsv-changed.exp b/gdb/testsuite/gdb.trace/mi-tsv-changed.exp index b3d01e8..577e342 100644 --- a/gdb/testsuite/gdb.trace/mi-tsv-changed.exp +++ b/gdb/testsuite/gdb.trace/mi-tsv-changed.exp @@ -71,7 +71,6 @@ proc test_create_delete_modify_tsv { } { clean_restart $testfile if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -153,7 +152,6 @@ proc test_upload_tsv { } { clean_restart $testfile if ![runto_main] then { - fail "can't run to main" return 0 } @@ -239,7 +237,6 @@ proc test_upload_tsv { } { clean_restart $testfile if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/no-attach-trace.exp b/gdb/testsuite/gdb.trace/no-attach-trace.exp index 5bd730f..552446a 100644 --- a/gdb/testsuite/gdb.trace/no-attach-trace.exp +++ b/gdb/testsuite/gdb.trace/no-attach-trace.exp @@ -43,7 +43,6 @@ gdb_test "tstart" "Target returns error code.*\." with_test_prefix "after tstart" { if ![runto_main] { - fail "can't run to main, target may have died unexpectedly" return -1 } } diff --git a/gdb/testsuite/gdb.trace/pending.exp b/gdb/testsuite/gdb.trace/pending.exp index bbff223..94a1e27 100644 --- a/gdb/testsuite/gdb.trace/pending.exp +++ b/gdb/testsuite/gdb.trace/pending.exp @@ -52,7 +52,6 @@ gdb_load_shlib $lib_sl1 gdb_load_shlib $lib_sl2 if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -188,7 +187,6 @@ proc pending_tracepoint_resolved_during_trace { trace_type } \ # Start with a fresh gdb. clean_restart $executable if ![runto_main] { - fail "can't run to main" return -1 } @@ -257,7 +255,6 @@ proc pending_tracepoint_installed_during_trace { trace_type } \ # Start with a fresh gdb. clean_restart $executable if ![runto_main] { - fail "can't run to main" return -1 } @@ -331,7 +328,6 @@ proc pending_tracepoint_disconnect_during_trace { trace_type } \ # Start with a fresh gdb. clean_restart $executable if ![runto_main] { - fail "can't run to main" return -1 } @@ -379,7 +375,6 @@ proc pending_tracepoint_disconnect_after_resolved { trace_type } \ # Start with a fresh gdb. clean_restart $executable if ![runto_main] { - fail "can't run to main" return -1 } @@ -432,7 +427,6 @@ proc pending_tracepoint_with_action_resolved { trace_type } \ # Start with a fresh gdb. clean_restart $executable if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.trace/pr16508.exp b/gdb/testsuite/gdb.trace/pr16508.exp index d0ecadd..2070648 100644 --- a/gdb/testsuite/gdb.trace/pr16508.exp +++ b/gdb/testsuite/gdb.trace/pr16508.exp @@ -23,7 +23,6 @@ if [prepare_for_testing "failed to prepare for trace tests" \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/qtro.exp b/gdb/testsuite/gdb.trace/qtro.exp index 0fadfa6..b129883 100644 --- a/gdb/testsuite/gdb.trace/qtro.exp +++ b/gdb/testsuite/gdb.trace/qtro.exp @@ -27,7 +27,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nopie}]} } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/range-stepping.exp b/gdb/testsuite/gdb.trace/range-stepping.exp index 156d862..cc3c7a8 100644 --- a/gdb/testsuite/gdb.trace/range-stepping.exp +++ b/gdb/testsuite/gdb.trace/range-stepping.exp @@ -25,7 +25,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -82,7 +81,6 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ clean_restart ${executable} if ![runto_main] { - fail "can't run to main for ftrace tests" return 0 } diff --git a/gdb/testsuite/gdb.trace/read-memory.exp b/gdb/testsuite/gdb.trace/read-memory.exp index 295784c..cad2f7d 100644 --- a/gdb/testsuite/gdb.trace/read-memory.exp +++ b/gdb/testsuite/gdb.trace/read-memory.exp @@ -22,7 +22,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nopie}]} } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -39,7 +38,6 @@ proc set_tracepoint_and_collect { } { # Start with a fresh gdb. clean_restart ${testfile} if ![runto_main] { - fail "can't run to main" return -1 } gdb_breakpoint "end" qualified diff --git a/gdb/testsuite/gdb.trace/signal.exp b/gdb/testsuite/gdb.trace/signal.exp index 218c7ba..df257cd 100644 --- a/gdb/testsuite/gdb.trace/signal.exp +++ b/gdb/testsuite/gdb.trace/signal.exp @@ -40,7 +40,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -67,7 +66,6 @@ if { [istarget "i\[34567\]86-*-linux*"] || [istarget "x86_64-*-linux*"] } { # Start with a fresh gdb. clean_restart ${testfile} if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.trace/status-stop.exp b/gdb/testsuite/gdb.trace/status-stop.exp index e129f01..1960b64 100644 --- a/gdb/testsuite/gdb.trace/status-stop.exp +++ b/gdb/testsuite/gdb.trace/status-stop.exp @@ -25,7 +25,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -44,7 +43,6 @@ proc test_tstart_tstop_tstart { } { # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -71,7 +69,6 @@ proc test_tstart_tstart { } { # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -98,7 +95,6 @@ proc test_buffer_full_tstart { } { # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.trace/strace.exp b/gdb/testsuite/gdb.trace/strace.exp index 82d62fc..1038b87 100644 --- a/gdb/testsuite/gdb.trace/strace.exp +++ b/gdb/testsuite/gdb.trace/strace.exp @@ -51,7 +51,6 @@ proc strace_remove_socket { action } { clean_restart $executable gdb_load_shlib $libipa if ![runto_main] { - fail "can't run to main" return -1 } @@ -136,7 +135,6 @@ proc strace_info_marker { } { clean_restart $executable gdb_load_shlib $libipa if ![runto_main] { - fail "can't run to main" return -1 } @@ -173,7 +171,6 @@ proc strace_probe_marker { } { clean_restart $executable gdb_load_shlib $libipa if ![runto_main] { - fail "can't run to main" return -1 } @@ -213,7 +210,6 @@ proc strace_trace_on_same_addr { type } { clean_restart $executable gdb_load_shlib $libipa if ![runto_main] { - fail "can't run to main" return -1 } @@ -317,7 +313,6 @@ proc strace_trace_on_diff_addr { } { clean_restart $executable gdb_load_shlib $libipa if ![runto_main] { - fail "can't run to main" return -1 } @@ -377,7 +372,6 @@ if { [istarget "x86_64-*-linux*"] || [istarget "i\[34567\]86-*-linux*"] } { clean_restart $executable gdb_load_shlib $libipa if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } if { ![gdb_target_supports_trace] } then { diff --git a/gdb/testsuite/gdb.trace/trace-break.exp b/gdb/testsuite/gdb.trace/trace-break.exp index cf60bfa..2e55d5c 100644 --- a/gdb/testsuite/gdb.trace/trace-break.exp +++ b/gdb/testsuite/gdb.trace/trace-break.exp @@ -32,7 +32,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -52,7 +51,6 @@ proc break_trace_same_addr_1 { trace_type option } \ # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -87,7 +85,6 @@ proc break_trace_same_addr_2 { trace_type1 trace_type2 option } \ # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -126,7 +123,6 @@ proc break_trace_same_addr_3 { trace_type option } \ # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -164,7 +160,6 @@ proc break_trace_same_addr_4 { trace_type option } \ # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -208,7 +203,6 @@ proc break_trace_same_addr_5 { trace1 trace2 trace3 trace3_at_first_loc } \ # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -282,7 +276,6 @@ proc break_trace_same_addr_6 { trace1 enable1 trace2 enable2 } \ # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -371,7 +364,6 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ clean_restart ${executable} if ![runto_main] { - fail "can't run to main for ftrace tests" return 0 } diff --git a/gdb/testsuite/gdb.trace/trace-buffer-size.exp b/gdb/testsuite/gdb.trace/trace-buffer-size.exp index e3962fa..2b2bb42 100644 --- a/gdb/testsuite/gdb.trace/trace-buffer-size.exp +++ b/gdb/testsuite/gdb.trace/trace-buffer-size.exp @@ -23,7 +23,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/trace-condition.exp b/gdb/testsuite/gdb.trace/trace-condition.exp index 3b23b4f..4eb376e 100644 --- a/gdb/testsuite/gdb.trace/trace-condition.exp +++ b/gdb/testsuite/gdb.trace/trace-condition.exp @@ -36,7 +36,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -61,7 +60,6 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ clean_restart ${executable} if ![runto_main] { - fail "can't run to main for ftrace tests" return 0 } @@ -76,7 +74,6 @@ proc test_tracepoints { trace_command condition num_frames { kfail_proc 0 } } { clean_restart ${executable} if ![runto_main] { - fail "can't run to main for ftrace tests" return 0 } diff --git a/gdb/testsuite/gdb.trace/trace-enable-disable.exp b/gdb/testsuite/gdb.trace/trace-enable-disable.exp index 3733cd6..4ceae1a 100644 --- a/gdb/testsuite/gdb.trace/trace-enable-disable.exp +++ b/gdb/testsuite/gdb.trace/trace-enable-disable.exp @@ -38,7 +38,6 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" clean_restart ${testfile} if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -70,7 +69,6 @@ proc test_tracepoint_enable_disable { tracepoint_cmd } { set expected 0 if ![runto_main] { - fail "can't run to main." return -1 } diff --git a/gdb/testsuite/gdb.trace/trace-mt.exp b/gdb/testsuite/gdb.trace/trace-mt.exp index 1c81b2e..634c1e7 100644 --- a/gdb/testsuite/gdb.trace/trace-mt.exp +++ b/gdb/testsuite/gdb.trace/trace-mt.exp @@ -35,7 +35,6 @@ if { [gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile \ clean_restart ${testfile} if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } @@ -55,7 +54,6 @@ proc step_over_tracepoint { trace_type } \ # Make sure inferior is running in all-stop mode. gdb_test_no_output "set non-stop 0" if ![runto_main] { - fail "can't run to main" return -1 } @@ -80,7 +78,6 @@ proc break_trace_same_addr { trace_type option } \ # Start with a fresh gdb. clean_restart ${executable} if ![runto_main] { - fail "can't run to main" return -1 } @@ -127,7 +124,6 @@ if { [gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile \ clean_restart ${executable} if ![runto_main] { - fail "can't run to main for ftrace tests" return 0 } diff --git a/gdb/testsuite/gdb.trace/tracefile-pseudo-reg.exp b/gdb/testsuite/gdb.trace/tracefile-pseudo-reg.exp index eafab1d..7746a80 100644 --- a/gdb/testsuite/gdb.trace/tracefile-pseudo-reg.exp +++ b/gdb/testsuite/gdb.trace/tracefile-pseudo-reg.exp @@ -27,7 +27,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/tspeed.exp b/gdb/testsuite/gdb.trace/tspeed.exp index 5728194..59cea40 100644 --- a/gdb/testsuite/gdb.trace/tspeed.exp +++ b/gdb/testsuite/gdb.trace/tspeed.exp @@ -36,7 +36,6 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" clean_restart ${testfile} if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/tstatus.exp b/gdb/testsuite/gdb.trace/tstatus.exp index 69edda6..bbecfe4 100644 --- a/gdb/testsuite/gdb.trace/tstatus.exp +++ b/gdb/testsuite/gdb.trace/tstatus.exp @@ -29,7 +29,6 @@ if [prepare_for_testing "failed to prepare" $executable $srcfile \ } if ![runto_main] { - fail "can't run to main to check for trace support" return -1 } diff --git a/gdb/testsuite/gdb.trace/tsv.exp b/gdb/testsuite/gdb.trace/tsv.exp index ff49aff..210ee98 100644 --- a/gdb/testsuite/gdb.trace/tsv.exp +++ b/gdb/testsuite/gdb.trace/tsv.exp @@ -201,7 +201,6 @@ gdb_test_multiple "target ctf ${tracefile}.ctf" "" { clean_restart ${binfile} if ![runto_main] then { - fail "can't run to main" return } diff --git a/gdb/testsuite/gdb.trace/while-stepping.exp b/gdb/testsuite/gdb.trace/while-stepping.exp index db32a36..3cea488 100644 --- a/gdb/testsuite/gdb.trace/while-stepping.exp +++ b/gdb/testsuite/gdb.trace/while-stepping.exp @@ -112,7 +112,6 @@ gdb_load $binfile gdb_breakpoint "main" gdb_run_cmd if {[gdb_test "" "Breakpoint .*"] != 0} { - fail "can't run to main" return -1 } diff --git a/gdb/testsuite/gdb.tui/corefile-run.exp b/gdb/testsuite/gdb.tui/corefile-run.exp index d53149f..f000ff6 100644 --- a/gdb/testsuite/gdb.tui/corefile-run.exp +++ b/gdb/testsuite/gdb.tui/corefile-run.exp @@ -35,7 +35,6 @@ if { [use_gdb_stub] || [target_info gdb_protocol] == "extended-remote" } { } if { ![runto_main] } { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/gdb.tui/tui-layout.exp b/gdb/testsuite/gdb.tui/tui-layout.exp index b867ab5..34b56c7 100644 --- a/gdb/testsuite/gdb.tui/tui-layout.exp +++ b/gdb/testsuite/gdb.tui/tui-layout.exp @@ -36,7 +36,6 @@ proc test_layout {layout execution} { if {$execution} { if ![runto_main] then { - fail "can't run to main" return 0 } } diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml/tdesc-reload.exp index a3bb2fb..5d6409d 100644 --- a/gdb/testsuite/gdb.xml/tdesc-reload.exp +++ b/gdb/testsuite/gdb.xml/tdesc-reload.exp @@ -28,7 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if ![runto_main] then { - fail "can't run to main" return 0 } @@ -64,7 +63,6 @@ gdb_load ${binfile} # Run to `main' where we begin our tests. if ![runto_main] then { - untested "could not run to main" return -1 } diff --git a/gdb/testsuite/lib/ada.exp b/gdb/testsuite/lib/ada.exp index 857b079..efbcc7b 100644 --- a/gdb/testsuite/lib/ada.exp +++ b/gdb/testsuite/lib/ada.exp @@ -181,7 +181,6 @@ gdb_caching_proc gnat_runtime_has_debug_info { clean_restart $dst if { ! [runto "GNAT_Debug_Info_Test"] } { - fail "failed to run to GNAT_Debug_Info_Test" return 0 } diff --git a/gdb/testsuite/lib/gdb-guile.exp b/gdb/testsuite/lib/gdb-guile.exp index c118ffe..25b8801 100644 --- a/gdb/testsuite/lib/gdb-guile.exp +++ b/gdb/testsuite/lib/gdb-guile.exp @@ -105,7 +105,6 @@ proc gdb_install_guile_module { } { proc gdb_guile_runto_main { } { if ![runto_main] { - fail "can't run to main" return 0 } diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index afdc92e..6de49c1 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -707,7 +707,7 @@ proc runto { function args } { # If you don't want that, use gdb_start_cmd. proc runto_main { } { - return [runto main no-message qualified] + return [runto main qualified] } ### Continue, and expect to hit a breakpoint. |