aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-09-30 11:52:21 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-09-30 15:27:39 -0400
commit4dfef5be6812dd7abfbc8f18e9c0384f2522b511 (patch)
tree90aa986d915c17f2320655298e2799d3a2cd1841 /gdb/testsuite/gdb.python
parent2fed9db40b1179f62c6fb0f2cacfb0db6b50af46 (diff)
downloadfsf-binutils-gdb-4dfef5be6812dd7abfbc8f18e9c0384f2522b511.zip
fsf-binutils-gdb-4dfef5be6812dd7abfbc8f18e9c0384f2522b511.tar.gz
fsf-binutils-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/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/lib-types.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-as-string.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-bad-printers.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-block.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp3
-rw-r--r--gdb/testsuite/gdb.python/py-breakpoint.exp14
-rw-r--r--gdb/testsuite/gdb.python/py-cmd.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-finish-breakpoint.exp10
-rw-r--r--gdb/testsuite/gdb.python/py-finish-breakpoint2.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-frame-inline.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-frame.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-inferior.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-infthread.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-objfile.exp2
-rw-r--r--gdb/testsuite/gdb.python/py-pending-frame-level.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-pp-maint.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-pp-registration.exp3
-rw-r--r--gdb/testsuite/gdb.python/py-progspace.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-rbreak.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-record-btrace-threads.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-record-btrace.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-record-full.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-recurse-unwind.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-shared.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-symbol.exp3
-rw-r--r--gdb/testsuite/gdb.python/py-symtab.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-unwind-inline.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-unwind-maint.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-unwind-user-regs.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-unwind.exp1
-rw-r--r--gdb/testsuite/gdb.python/py-value.exp1
-rw-r--r--gdb/testsuite/gdb.python/python.exp3
34 files changed, 3 insertions, 62 deletions
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
}