aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
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.base
parent2fed9db40b1179f62c6fb0f2cacfb0db6b50af46 (diff)
downloadgdb-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/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/advance-until-multiple-locations.exp5
-rw-r--r--gdb/testsuite/gdb.base/advance.exp1
-rw-r--r--gdb/testsuite/gdb.base/annota-input-while-running.exp1
-rw-r--r--gdb/testsuite/gdb.base/annota1.exp1
-rw-r--r--gdb/testsuite/gdb.base/annotate-symlink.exp1
-rw-r--r--gdb/testsuite/gdb.base/anon.exp1
-rw-r--r--gdb/testsuite/gdb.base/argv0-symlink.exp2
-rw-r--r--gdb/testsuite/gdb.base/asmlabel.exp1
-rw-r--r--gdb/testsuite/gdb.base/attach-wait-input.exp1
-rw-r--r--gdb/testsuite/gdb.base/attach.exp1
-rw-r--r--gdb/testsuite/gdb.base/auto-connect-native-target.exp1
-rw-r--r--gdb/testsuite/gdb.base/auxv.exp1
-rw-r--r--gdb/testsuite/gdb.base/backtrace.exp1
-rw-r--r--gdb/testsuite/gdb.base/bigcore.exp1
-rw-r--r--gdb/testsuite/gdb.base/break-idempotent.exp1
-rw-r--r--gdb/testsuite/gdb.base/break-main-file-remove-fail.exp1
-rw-r--r--gdb/testsuite/gdb.base/break-unload-file.exp1
-rw-r--r--gdb/testsuite/gdb.base/break.exp12
-rw-r--r--gdb/testsuite/gdb.base/breakpoint-shadow.exp1
-rw-r--r--gdb/testsuite/gdb.base/bt-on-error-and-warning.exp1
-rw-r--r--gdb/testsuite/gdb.base/bt-on-fatal-signal.exp1
-rw-r--r--gdb/testsuite/gdb.base/bt-selected-frame.exp1
-rw-r--r--gdb/testsuite/gdb.base/call-signal-resume.exp1
-rw-r--r--gdb/testsuite/gdb.base/callexit.exp1
-rw-r--r--gdb/testsuite/gdb.base/cast-call.exp1
-rw-r--r--gdb/testsuite/gdb.base/catch-follow-exec.exp1
-rw-r--r--gdb/testsuite/gdb.base/catch-fork-kill.exp1
-rw-r--r--gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp1
-rw-r--r--gdb/testsuite/gdb.base/catch-load.exp1
-rw-r--r--gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp1
-rw-r--r--gdb/testsuite/gdb.base/catch-syscall.exp1
-rw-r--r--gdb/testsuite/gdb.base/commands.exp1
-rw-r--r--gdb/testsuite/gdb.base/compare-sections.exp1
-rw-r--r--gdb/testsuite/gdb.base/complex-parts.exp1
-rw-r--r--gdb/testsuite/gdb.base/cond-eval-mode.exp1
-rw-r--r--gdb/testsuite/gdb.base/condbreak-bad.exp3
-rw-r--r--gdb/testsuite/gdb.base/condbreak-call-false.exp1
-rw-r--r--gdb/testsuite/gdb.base/consecutive-step-over.exp1
-rw-r--r--gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp1
-rw-r--r--gdb/testsuite/gdb.base/continue-all-already-running.exp1
-rw-r--r--gdb/testsuite/gdb.base/coredump-filter-build-id.exp1
-rw-r--r--gdb/testsuite/gdb.base/coredump-filter.exp1
-rw-r--r--gdb/testsuite/gdb.base/corefile2.exp1
-rw-r--r--gdb/testsuite/gdb.base/ctxobj.exp1
-rw-r--r--gdb/testsuite/gdb.base/debug-expr.exp1
-rw-r--r--gdb/testsuite/gdb.base/decl-before-def.exp1
-rw-r--r--gdb/testsuite/gdb.base/define.exp4
-rw-r--r--gdb/testsuite/gdb.base/detach-sysroot-target.exp1
-rw-r--r--gdb/testsuite/gdb.base/disabled-location.exp1
-rw-r--r--gdb/testsuite/gdb.base/display.exp3
-rw-r--r--gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp1
-rw-r--r--gdb/testsuite/gdb.base/dprintf-detach.exp1
-rw-r--r--gdb/testsuite/gdb.base/dprintf-next.exp1
-rw-r--r--gdb/testsuite/gdb.base/dprintf-non-stop.exp1
-rw-r--r--gdb/testsuite/gdb.base/dtrace-probe.exp8
-rw-r--r--gdb/testsuite/gdb.base/duplicate-bp.exp1
-rw-r--r--gdb/testsuite/gdb.base/ena-dis-br.exp22
-rw-r--r--gdb/testsuite/gdb.base/endianity.exp1
-rw-r--r--gdb/testsuite/gdb.base/examine-backward.exp1
-rw-r--r--gdb/testsuite/gdb.base/exec-invalid-sysroot.exp1
-rw-r--r--gdb/testsuite/gdb.base/execl-update-breakpoints.exp3
-rw-r--r--gdb/testsuite/gdb.base/execution-termios.exp1
-rw-r--r--gdb/testsuite/gdb.base/finish-pretty.exp1
-rw-r--r--gdb/testsuite/gdb.base/finish.exp3
-rw-r--r--gdb/testsuite/gdb.base/fixsection.exp1
-rw-r--r--gdb/testsuite/gdb.base/foll-exec-mode.exp2
-rw-r--r--gdb/testsuite/gdb.base/foll-exec.exp6
-rw-r--r--gdb/testsuite/gdb.base/foll-fork.exp1
-rw-r--r--gdb/testsuite/gdb.base/fork-running-state.exp1
-rw-r--r--gdb/testsuite/gdb.base/frame-info-consistent.exp1
-rw-r--r--gdb/testsuite/gdb.base/frameapply.exp1
-rw-r--r--gdb/testsuite/gdb.base/func-ptr.exp1
-rw-r--r--gdb/testsuite/gdb.base/func-ptrs.exp1
-rw-r--r--gdb/testsuite/gdb.base/gcore-buffer-overflow.exp1
-rw-r--r--gdb/testsuite/gdb.base/gcore-relro-pie.exp1
-rw-r--r--gdb/testsuite/gdb.base/gcore-tls-pie.exp1
-rw-r--r--gdb/testsuite/gdb.base/gcore.exp1
-rw-r--r--gdb/testsuite/gdb.base/gdb1090.exp1
-rw-r--r--gdb/testsuite/gdb.base/gdb11530.exp1
-rw-r--r--gdb/testsuite/gdb.base/gdb11531.exp1
-rw-r--r--gdb/testsuite/gdb.base/gdb1555.exp1
-rw-r--r--gdb/testsuite/gdb.base/gnu-ifunc.exp2
-rw-r--r--gdb/testsuite/gdb.base/gnu_vector.exp1
-rw-r--r--gdb/testsuite/gdb.base/gold-gdb-index.exp1
-rw-r--r--gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp1
-rw-r--r--gdb/testsuite/gdb.base/hbreak-unmapped.exp1
-rw-r--r--gdb/testsuite/gdb.base/hbreak.exp1
-rw-r--r--gdb/testsuite/gdb.base/hbreak2.exp18
-rw-r--r--gdb/testsuite/gdb.base/hook-stop.exp1
-rw-r--r--gdb/testsuite/gdb.base/huge.exp1
-rw-r--r--gdb/testsuite/gdb.base/hw-sw-break-same-address.exp1
-rw-r--r--gdb/testsuite/gdb.base/infcall-exec.exp1
-rw-r--r--gdb/testsuite/gdb.base/infcall-input.exp1
-rw-r--r--gdb/testsuite/gdb.base/infcall-nested-structs.exp.tcl1
-rw-r--r--gdb/testsuite/gdb.base/inferior-args.exp1
-rw-r--r--gdb/testsuite/gdb.base/inferior-noarg.exp1
-rw-r--r--gdb/testsuite/gdb.base/info-fun.exp1
-rw-r--r--gdb/testsuite/gdb.base/info-locals-unused-static-var.exp1
-rw-r--r--gdb/testsuite/gdb.base/info-macros.exp1
-rw-r--r--gdb/testsuite/gdb.base/info-os.exp1
-rw-r--r--gdb/testsuite/gdb.base/info-proc.exp1
-rw-r--r--gdb/testsuite/gdb.base/info-program.exp2
-rw-r--r--gdb/testsuite/gdb.base/info-types.exp.tcl1
-rw-r--r--gdb/testsuite/gdb.base/info_qt.exp1
-rw-r--r--gdb/testsuite/gdb.base/info_sources.exp1
-rw-r--r--gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp1
-rw-r--r--gdb/testsuite/gdb.base/interp.exp1
-rw-r--r--gdb/testsuite/gdb.base/interrupt-daemon.exp1
-rw-r--r--gdb/testsuite/gdb.base/interrupt-noterm.exp1
-rw-r--r--gdb/testsuite/gdb.base/jit-elf-fork.exp1
-rw-r--r--gdb/testsuite/gdb.base/jit-elf-so.exp1
-rw-r--r--gdb/testsuite/gdb.base/jit-elf.exp1
-rw-r--r--gdb/testsuite/gdb.base/jit-reader-exec.exp1
-rw-r--r--gdb/testsuite/gdb.base/jit-reader-simple.exp1
-rw-r--r--gdb/testsuite/gdb.base/label-without-address.exp1
-rw-r--r--gdb/testsuite/gdb.base/label.exp1
-rw-r--r--gdb/testsuite/gdb.base/large-frame.exp1
-rw-r--r--gdb/testsuite/gdb.base/ldbl_e308.exp1
-rw-r--r--gdb/testsuite/gdb.base/line-symtabs.exp1
-rw-r--r--gdb/testsuite/gdb.base/list-missing-source.exp1
-rw-r--r--gdb/testsuite/gdb.base/list.exp1
-rw-r--r--gdb/testsuite/gdb.base/load-command.exp1
-rw-r--r--gdb/testsuite/gdb.base/long-inferior-output.exp1
-rw-r--r--gdb/testsuite/gdb.base/long_long.exp1
-rw-r--r--gdb/testsuite/gdb.base/longjmp.exp1
-rw-r--r--gdb/testsuite/gdb.base/macscp.exp1
-rw-r--r--gdb/testsuite/gdb.base/maint-info-sections.exp1
-rw-r--r--gdb/testsuite/gdb.base/maint-target-async-off.exp1
-rw-r--r--gdb/testsuite/gdb.base/many-completions.exp1
-rw-r--r--gdb/testsuite/gdb.base/max-depth.exp.tcl1
-rw-r--r--gdb/testsuite/gdb.base/max-value-size.exp1
-rw-r--r--gdb/testsuite/gdb.base/memtag.exp1
-rw-r--r--gdb/testsuite/gdb.base/msym-bp-shl.exp1
-rw-r--r--gdb/testsuite/gdb.base/msym-bp.exp1
-rw-r--r--gdb/testsuite/gdb.base/new-ui.exp3
-rw-r--r--gdb/testsuite/gdb.base/noreturn-finish.exp1
-rw-r--r--gdb/testsuite/gdb.base/noreturn-return.exp1
-rw-r--r--gdb/testsuite/gdb.base/options.exp2
-rw-r--r--gdb/testsuite/gdb.base/overlays.exp1
-rw-r--r--gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp1
-rw-r--r--gdb/testsuite/gdb.base/paginate-bg-execution.exp1
-rw-r--r--gdb/testsuite/gdb.base/paginate-inferior-exit.exp1
-rw-r--r--gdb/testsuite/gdb.base/pie-fork.exp1
-rw-r--r--gdb/testsuite/gdb.base/pr10179.exp1
-rw-r--r--gdb/testsuite/gdb.base/pr11022.exp1
-rw-r--r--gdb/testsuite/gdb.base/pretty-array.exp1
-rw-r--r--gdb/testsuite/gdb.base/pretty-print.exp1
-rw-r--r--gdb/testsuite/gdb.base/print-file-var.exp1
-rw-r--r--gdb/testsuite/gdb.base/printcmds.exp1
-rw-r--r--gdb/testsuite/gdb.base/quit-live.exp1
-rw-r--r--gdb/testsuite/gdb.base/range-stepping.exp1
-rw-r--r--gdb/testsuite/gdb.base/recpar.exp1
-rw-r--r--gdb/testsuite/gdb.base/reggroups.exp1
-rw-r--r--gdb/testsuite/gdb.base/remote.exp1
-rw-r--r--gdb/testsuite/gdb.base/return2.exp1
-rw-r--r--gdb/testsuite/gdb.base/run-attach-while-running.exp1
-rw-r--r--gdb/testsuite/gdb.base/save-bp.exp2
-rw-r--r--gdb/testsuite/gdb.base/savedregs.exp1
-rw-r--r--gdb/testsuite/gdb.base/sect-cmd.exp1
-rw-r--r--gdb/testsuite/gdb.base/sepdebug.exp12
-rw-r--r--gdb/testsuite/gdb.base/set-cwd.exp4
-rw-r--r--gdb/testsuite/gdb.base/set-noassign.exp1
-rw-r--r--gdb/testsuite/gdb.base/setshow.exp2
-rw-r--r--gdb/testsuite/gdb.base/share-psymtabs-bt.exp1
-rw-r--r--gdb/testsuite/gdb.base/shreloc.exp1
-rw-r--r--gdb/testsuite/gdb.base/sigaltstack.exp1
-rw-r--r--gdb/testsuite/gdb.base/sigbpt.exp1
-rw-r--r--gdb/testsuite/gdb.base/siginfo-addr.exp1
-rw-r--r--gdb/testsuite/gdb.base/siginfo-obj.exp2
-rw-r--r--gdb/testsuite/gdb.base/siginfo-thread.exp1
-rw-r--r--gdb/testsuite/gdb.base/siginfo.exp1
-rw-r--r--gdb/testsuite/gdb.base/signals-state-child.exp1
-rw-r--r--gdb/testsuite/gdb.base/signest.exp1
-rw-r--r--gdb/testsuite/gdb.base/signull.exp1
-rw-r--r--gdb/testsuite/gdb.base/sigrepeat.exp1
-rw-r--r--gdb/testsuite/gdb.base/skip-inline.exp4
-rw-r--r--gdb/testsuite/gdb.base/skip-solib.exp8
-rw-r--r--gdb/testsuite/gdb.base/skip.exp13
-rw-r--r--gdb/testsuite/gdb.base/skipcxx.exp1
-rw-r--r--gdb/testsuite/gdb.base/so-impl-ld.exp4
-rw-r--r--gdb/testsuite/gdb.base/solib-corrupted.exp1
-rw-r--r--gdb/testsuite/gdb.base/solib-disc.exp1
-rw-r--r--gdb/testsuite/gdb.base/solib-display.exp1
-rw-r--r--gdb/testsuite/gdb.base/solib-search.exp1
-rw-r--r--gdb/testsuite/gdb.base/solib-symbol.exp1
-rw-r--r--gdb/testsuite/gdb.base/solib-vanish.exp1
-rw-r--r--gdb/testsuite/gdb.base/source-dir.exp1
-rw-r--r--gdb/testsuite/gdb.base/source-execution.exp1
-rw-r--r--gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp1
-rw-r--r--gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp1
-rw-r--r--gdb/testsuite/gdb.base/stack-checking.exp1
-rw-r--r--gdb/testsuite/gdb.base/stack-protector.exp1
-rw-r--r--gdb/testsuite/gdb.base/step-break.exp1
-rw-r--r--gdb/testsuite/gdb.base/step-indirect-call-thunk.exp1
-rw-r--r--gdb/testsuite/gdb.base/step-line.exp1
-rw-r--r--gdb/testsuite/gdb.base/step-over-exit.exp1
-rw-r--r--gdb/testsuite/gdb.base/step-over-no-symbols.exp2
-rw-r--r--gdb/testsuite/gdb.base/step-over-syscall.exp2
-rw-r--r--gdb/testsuite/gdb.base/step-test.exp3
-rw-r--r--gdb/testsuite/gdb.base/structs2.exp1
-rw-r--r--gdb/testsuite/gdb.base/structs3.exp1
-rw-r--r--gdb/testsuite/gdb.base/style-interp-exec-mi.exp1
-rw-r--r--gdb/testsuite/gdb.base/style-logging.exp1
-rw-r--r--gdb/testsuite/gdb.base/style.exp1
-rw-r--r--gdb/testsuite/gdb.base/sym-file.exp1
-rw-r--r--gdb/testsuite/gdb.base/symbol-alias.exp1
-rw-r--r--gdb/testsuite/gdb.base/symlink-sourcefile.exp1
-rw-r--r--gdb/testsuite/gdb.base/symtab-search-order.exp1
-rw-r--r--gdb/testsuite/gdb.base/template.exp1
-rw-r--r--gdb/testsuite/gdb.base/term.exp1
-rw-r--r--gdb/testsuite/gdb.base/type-opaque.exp1
-rw-r--r--gdb/testsuite/gdb.base/ui-redirect.exp1
-rw-r--r--gdb/testsuite/gdb.base/until-nodebug.exp1
-rw-r--r--gdb/testsuite/gdb.base/until.exp1
-rw-r--r--gdb/testsuite/gdb.base/unwindonsignal.exp1
-rw-r--r--gdb/testsuite/gdb.base/utf8-identifiers.exp1
-rw-r--r--gdb/testsuite/gdb.base/vla-optimized-out.exp1
-rw-r--r--gdb/testsuite/gdb.base/watch-cond-infcall.exp1
-rw-r--r--gdb/testsuite/gdb.base/watch-cond.exp3
-rw-r--r--gdb/testsuite/gdb.base/watch-non-mem.exp1
-rw-r--r--gdb/testsuite/gdb.base/watch-read.exp1
-rw-r--r--gdb/testsuite/gdb.base/watch-vfork.exp1
-rw-r--r--gdb/testsuite/gdb.base/watch_thread_num.exp1
-rw-r--r--gdb/testsuite/gdb.base/watchpoint-hw-attach.exp1
-rw-r--r--gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp1
-rw-r--r--gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp2
-rw-r--r--gdb/testsuite/gdb.base/watchpoint-unaligned.exp1
-rw-r--r--gdb/testsuite/gdb.base/watchpoint.exp4
-rw-r--r--gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp1
-rw-r--r--gdb/testsuite/gdb.base/with.exp1
230 files changed, 66 insertions, 299 deletions
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
}