diff options
-rw-r--r-- | gdb/testsuite/gdb.ada/str_chars.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/value-history-unavailable.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-connection-removed.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-watchpoint.exp | 2 |
9 files changed, 17 insertions, 18 deletions
diff --git a/gdb/testsuite/gdb.ada/str_chars.exp b/gdb/testsuite/gdb.ada/str_chars.exp index 6d494d3..f459e3c 100644 --- a/gdb/testsuite/gdb.ada/str_chars.exp +++ b/gdb/testsuite/gdb.ada/str_chars.exp @@ -28,8 +28,8 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } clean_restart ${testfile} set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb] -if ![runto "foo.adb:$bp_location" ] then { - return -1 +if {![runto "foo.adb:$bp_location"]} { + return } gdb_test "print Arg" \ diff --git a/gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp b/gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp index 4319623..8b7c148 100644 --- a/gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp +++ b/gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp @@ -31,8 +31,8 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \ clean_restart ${binfile} -if ![runto_main] then { - fail "could not run to main" +if {![runto_main]} { + return } gdb_breakpoint break_here_asm temporary diff --git a/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp b/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp index f035f87..fa82bef 100644 --- a/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp +++ b/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp @@ -34,8 +34,8 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \ clean_restart ${binfile} -if ![runto_main] then { - fail "could not run to main" +if {![runto_main]} { + return } gdb_breakpoint break_here_asm temporary diff --git a/gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp b/gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp index a8ffab0..bfedff2 100644 --- a/gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp +++ b/gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp @@ -36,8 +36,8 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \ clean_restart ${binfile} -if ![runto_main] then { - fail "could not run to main" +if {![runto_main]} { + return } gdb_breakpoint break_here_asm temporary diff --git a/gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp b/gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp index 0a915c5..004c606 100644 --- a/gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp +++ b/gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp @@ -31,8 +31,8 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \ clean_restart ${binfile} -if ![runto_main] then { - fail "could not run to main" +if {![runto_main]} { + return } gdb_breakpoint break_here_asm temporary diff --git a/gdb/testsuite/gdb.base/value-history-unavailable.exp b/gdb/testsuite/gdb.base/value-history-unavailable.exp index 0086706..8dc25db 100644 --- a/gdb/testsuite/gdb.base/value-history-unavailable.exp +++ b/gdb/testsuite/gdb.base/value-history-unavailable.exp @@ -21,9 +21,8 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { return -1 } -if ![runto_main] then { - perror "couldn't run to breakpoint" - continue +if {![runto_main]} { + return } set target_char_mask [get_valueof "/u" "a.x\[0]" "255" "get target char mask"] diff --git a/gdb/testsuite/gdb.python/py-connection-removed.exp b/gdb/testsuite/gdb.python/py-connection-removed.exp index 117075a..28c71da 100644 --- a/gdb/testsuite/gdb.python/py-connection-removed.exp +++ b/gdb/testsuite/gdb.python/py-connection-removed.exp @@ -33,8 +33,8 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } { return -1 } -if ![runto_main] then { - return 0 +if {![runto_main]} { + return } # Register a callback that will trigger when a connection is removed diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp index 84e839b..4aed5c5 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp @@ -25,8 +25,8 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 } -if ![runto_main] then { - return 0 +if {![runto_main]} { + return } # For remote host testing diff --git a/gdb/testsuite/gdb.python/py-watchpoint.exp b/gdb/testsuite/gdb.python/py-watchpoint.exp index a3c0d7d..9361956 100644 --- a/gdb/testsuite/gdb.python/py-watchpoint.exp +++ b/gdb/testsuite/gdb.python/py-watchpoint.exp @@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { require allow_python_tests -if ![runto_main] then { +if {![runto_main]} { return } |