]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GDB: testsuite: MI: Don't return -1 from top-level (sed)
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 29 Apr 2026 23:04:17 +0000 (20:04 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 8 May 2026 21:55:59 +0000 (18:55 -0300)
This patch is purely the result of running:

$ sed -i 's/^    return -1/    return/' *.exp*

inside gdb/testsuite/gdb.mi.

Approved-By: Tom Tromey <tom@tromey.com>
59 files changed:
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp
gdb/testsuite/gdb.mi/gdb669.exp
gdb/testsuite/gdb.mi/interrupt-thread-group.exp
gdb/testsuite/gdb.mi/list-thread-groups-available.exp
gdb/testsuite/gdb.mi/mi-add-inferior.exp
gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp
gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp
gdb/testsuite/gdb.mi/mi-breakpoint-script.exp
gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
gdb/testsuite/gdb.mi/mi-catch-load.exp
gdb/testsuite/gdb.mi/mi-cmd-user-context.exp
gdb/testsuite/gdb.mi/mi-condbreak-fail.exp
gdb/testsuite/gdb.mi/mi-condbreak-throw.exp
gdb/testsuite/gdb.mi/mi-corefile.exp
gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
gdb/testsuite/gdb.mi/mi-dprintf.exp
gdb/testsuite/gdb.mi/mi-exit-code.exp
gdb/testsuite/gdb.mi/mi-file-transfer.exp
gdb/testsuite/gdb.mi/mi-fortran-modules.exp
gdb/testsuite/gdb.mi/mi-fullname-deleted.exp
gdb/testsuite/gdb.mi/mi-info-os.exp
gdb/testsuite/gdb.mi/mi-info-sources.exp
gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp
gdb/testsuite/gdb.mi/mi-logging.exp
gdb/testsuite/gdb.mi/mi-memory-changed.exp
gdb/testsuite/gdb.mi/mi-nonstop-exit.exp
gdb/testsuite/gdb.mi/mi-nonstop.exp
gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp
gdb/testsuite/gdb.mi/mi-nsintrall.exp
gdb/testsuite/gdb.mi/mi-nsmoribund.exp
gdb/testsuite/gdb.mi/mi-nsthrexec.exp
gdb/testsuite/gdb.mi/mi-pending.exp
gdb/testsuite/gdb.mi/mi-pthreads.exp
gdb/testsuite/gdb.mi/mi-py-modify-bp.exp
gdb/testsuite/gdb.mi/mi-record-changed.exp
gdb/testsuite/gdb.mi/mi-reg-undefined.exp
gdb/testsuite/gdb.mi/mi-stepn.exp
gdb/testsuite/gdb.mi/mi-sym-info.exp
gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp
gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp
gdb/testsuite/gdb.mi/mi-threads-interrupt.exp
gdb/testsuite/gdb.mi/mi-var-block.exp
gdb/testsuite/gdb.mi/mi-var-child-f.exp
gdb/testsuite/gdb.mi/mi-var-child.exp
gdb/testsuite/gdb.mi/mi-var-cmd.exp
gdb/testsuite/gdb.mi/mi-var-create-rtti.exp
gdb/testsuite/gdb.mi/mi-var-display.exp
gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp
gdb/testsuite/gdb.mi/mi-var-invalidate.exp
gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp
gdb/testsuite/gdb.mi/mi-var-rtti.exp
gdb/testsuite/gdb.mi/mi-watch-nonstop.exp
gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp
gdb/testsuite/gdb.mi/mi2-cli-display.exp
gdb/testsuite/gdb.mi/mi2-var-child.exp
gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp
gdb/testsuite/gdb.mi/new-ui-mi-sync.exp
gdb/testsuite/gdb.mi/print-simple-values.exp
gdb/testsuite/gdb.mi/user-selected-context-sync.exp

index ad0dd162c49558980bab709b578e446437af3cb4..94f42fe77ab8fc5cb70d8b21cfb8e31ae33cc136 100644 (file)
@@ -39,7 +39,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $objsfile object {}] != ""
      || [gdb_compile "${srcdir}/${subdir}/${srcfile2}" $objfuncfile object {}] != ""
      || [gdb_compile "${srcdir}/${subdir}/${srcfile3}" $objmainfile object {debug}] != ""
      || [gdb_compile "$objfuncfile $objsfile $objmainfile" $binfile executable {}] != "" } {
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index a07117a3804cfff40b4000ef908fb1a951ebaa3f..b03577d857488d7cc6324afb4218b3493eb1d86c 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile pthreads.c
 
 set options [list debug]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
index 17a2a42c5e6c997e4efdb1e30e815770f2453aa0..f2c45a9dc27e66a63ff2f107333cb33d1729203c 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile .c
 
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile \
         executable {debug additional_flags=-std=gnu99}] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 426e39ff2b63e4d7a3f47c8187150767b252e28a..77f932cd167e0cfbea11de707a6c9d134e3c303c 100644 (file)
@@ -26,7 +26,7 @@ require can_spawn_for_attach
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_gdb_start]} {
index fc9002bd6279802a969c18bba1880bbe0ed3fa03..607eaacdf22d0f12af541e4c5c2507ddb92d869c 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile basics.c
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
           executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 mi_clean_restart ${::testfile}
index 78e2ebc3ea88ba1331ff9981a6426ef55b311cda..688ad46f1b391a5574bee959147c92b6255d325b 100644 (file)
@@ -32,7 +32,7 @@ set lib_opts "debug"
 if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
      || [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 set MIFLAGS "-i=mi"
@@ -40,7 +40,7 @@ set MIFLAGS "-i=mi"
 set exec_opts [list debug shlib=$lib_sl1 shlib_load]
 if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 proc test_insert_delete_modify { } {
index eb20460f7594dce2afe4d4e3d0eb3356996e1485..95097568624e7d18948309b6cf2d223c74c3a5e7 100644 (file)
@@ -19,7 +19,7 @@ load_lib mi-support.exp
 standard_testfile .cc
 
 if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug c++}] != "" } {
-    return -1
+    return
 }
 
 # Generate the regexp pattern used to match the breakpoint description emitted
index 70a03d9e0a0815658e53384f19ea99610dca69e5..0ec3b4d1abca69f699c77feef01b7be81a50df9c 100644 (file)
@@ -20,7 +20,7 @@ load_lib mi-support.exp
 standard_testfile .c
 
 if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
-    return -1
+    return
 }
 
 # Generate the regexp pattern used to match the breakpoint description emitted
index ef3164034e79f1a9ed02cdc27f9fae1edba91d32..3581bbe8d794cf89696f44523ff5f69fb66eebdd 100644 (file)
@@ -24,12 +24,12 @@ standard_testfile .cc
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
 if {[mi_runto_main] < 0} {
-    return -1
+    return
 }
 set libstdcxx_probe_tests_supported [expr {![mi_skip_libstdcxx_probe_tests]}]
 
index 4afd9154eb39ff4a80831cc4ce9a289323d0ea7a..e42f9c075ab05aa661d8be1997f78abbc7acb505 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile mi-catch-load.c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set testfile2 mi-catch-load-so
@@ -29,7 +29,7 @@ set binfile2 [standard_output_file ${testfile2}.so]
 set binfile2_dlopen [shlib_target_file ${testfile2}.so]
 if { [gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" ${binfile2} {debug}] != "" } {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 gdb_download_shlib $binfile2
index 6e5be0d27764c460843d9046120457fb1019dd77..7ee1949e44054b3897afea47ca7c58720149962c 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile
 
 if {[build_executable $testfile.exp $testfile ${srcfile} "debug pthreads"] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set main_break_line [gdb_get_line_number "main break line"]
index db3b61e320fd5db1563d9733bb41fc87690bd1f6..99629840e04e11fbedb1776ce73cfc9c2bbbaf19 100644 (file)
@@ -23,7 +23,7 @@ set MIFLAGS "-i=mi"
 standard_testfile
 
 if {[build_executable ${testfile}.exp ${binfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 # Create a breakpoint with a condition that invokes an inferior
index 97e671cd2dab0f03bbb365151fa370e5d3764ae5..e367f7a24200d8aa98122ce6926825e5d9127f34 100644 (file)
@@ -26,7 +26,7 @@ set MIFLAGS "-i=mi"
 standard_testfile .cc
 
 if {[build_executable ${testfile}.exp ${binfile} ${srcfile} {debug c++}]} {
-    return -1
+    return
 }
 
 # Create a breakpoint with a condition that invokes an inferior
index d3fd841abf40ad84d0faaf4aafd403b94b9fe407..67c6183f3867165f8428412dbe76ac4d072ab214 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set corefile [core_find $binfile {}]
index f9767fb8c27c6dfafa8ae6567fa9f78e7f4d78de..b2e1cc3438cb8452b21293515decea4a69efd282 100644 (file)
@@ -31,12 +31,12 @@ set exec_opts [list debug shlib=$lib_sl1 shlib_load]
 
 if {[gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""} {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index 3f0e4dba1d99cdc9ccb2d62d1fff43f9efffb902..9b2c192e5041173c87f2bb9f77ac74bc72e426da 100644 (file)
@@ -25,7 +25,7 @@ lappend_include_file flags $srcdir/lib/unbuffer_output.c
 
 if {[build_executable $testfile.exp $testfile $srcfile $flags] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
index c12d1158c07bfccbe47fc6b2003f3b474c13f964..2e48c7ce028d2b282b5a1a4ccb47574aad194400 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 proc test_list_thread_groups { } {
index 7a42766964e77239f0f47d77b9a2d7436e03aa16..5fc137ba5a05f574e730fb5985b52dd85ca05b42 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile basics.c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart]} {
index 2d874612e05df003bc3fd51e94afb25035518e0f..c08d5c2038a74504266a097541ad2b3f31605e8a 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile "mi-fortran-modules.f90" "mi-fortran-modules-2.f90"
 
 if {[build_executable "failed to prepare" ${testfile} \
         [list $srcfile2 $srcfile] {debug f90}]} {
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
index 803c07b3ea03731c25ba9188fcfa41168ce33745..9f56e03d747aa10b35f891954eea01aad3bb2a30 100644 (file)
@@ -32,13 +32,13 @@ set srcfileabs [standard_output_file $srcfile]
 # not match" test when using Clang (it can never fail).
 if { [regsub {/[^/]+$} $srcfileabs {/\0} srcfileabs] != 1 } {
     xfail "cannot double the last slash separator"
-    return -1
+    return
 }
 
 if { [regsub {^(/[^/]+)/} $srcfileabs {\1subst/} srcfileabssubst] != 1
      || [regsub {^(/[^/]+)/.*$} $srcfileabs {\1} initdir] != 1 } {
     xfail "missing root subdirectory"
-    return -1
+    return
 }
 
 # Generate a regular expression which to match $srcfileabs with
@@ -53,7 +53,7 @@ close $f
 
 if { [gdb_compile "$srcfileabs" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 file delete -- $srcfileabs
index 9adc8d31c4ed5ed9f59c67ee3654733424088868..f802d8cfd92e375f47b27c7cf0e8ba3fd4ffc4c7 100644 (file)
@@ -19,7 +19,7 @@ set MIFLAGS "-i=mi"
 # This test is Linux-only.
 if {![istarget *-*-linux*]} {
     unsupported "mi-info-os.exp"
-    return -1
+    return
 }
 
 # Support for XML-output is needed to run this test.
@@ -29,7 +29,7 @@ standard_testfile basics.c
 
 if {[build_executable "Failed to build $testfile" $testfile $srcfile \
         debug]} {
-    return -1;
+    return;
 }
 
 if {[mi_clean_restart $::testfile]} {
@@ -44,7 +44,7 @@ if {[mi_clean_restart $::testfile]} {
 # running any program, so we want to avoid "run".  Using
 # mi_gdb_target_load directly instead achieves this.
 if {[mi_gdb_target_load] < 0} {
-    return -1
+    return
 }
 
 # Try the argument-less form that lists all the types in a table.
index ab92fff197c008833d2a1416972b49bd24b83fe8..0b3016c0b55d0918d4c26d8921332b71530a7d4f 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .c -base.c
 if {[build_executable $testfile.exp $testfile \
         [list $srcfile $srcfile2] debug]} {
     untested $testfile.exp
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
index b06f4686e082c7ead58c37c3bc01de1fc3447262..91261597fa9180b340a98a26a553b0379ac633f1 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile .cc
 set exefile $testfile
 
 if {[build_executable "failed to prepare" $exefile $srcfile {debug c++}]} {
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
index 6cff709cfc5c5ce723e2649d162018dc03d4aec8..1ed0d229bae03ad2753ee436ec4b1743f55c736c 100644 (file)
@@ -21,13 +21,13 @@ set opts {debug}
 
 if {[build_executable $testfile.exp $testfile $srcfile $opts]} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
-    return -1
+    return
 }
 
 set milogfile [standard_output_file "milog.txt"]
index 6f41ecd8ad32691b5c99397a1af7a938e0c6b159..916d240b09bc4079a964be09a073773270af54cf 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile basics.c
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 load_lib mi-support.exp
index 8958755c57a480d346140002d7a182f6db94727d..ba62f74bf01577f5a3fe8380d786363cc7f72198 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile non-stop-exit.c
 
 set options [list debug]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index e8504919158327319f1f041b9fab10b3fa75f3c4..970b11a2f8e2c9acc98872f1a9bfc6c7444dba53 100644 (file)
@@ -35,7 +35,7 @@ standard_testfile non-stop.c
 
 set options [list debug]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
-    return -1
+    return
 }
 
 
index 34257ee5c7767e67bd367ca905cbdcd962948097..d5f6a1ec16bf7b0d7b2413ea89abd471bf801738 100644 (file)
@@ -38,7 +38,7 @@ standard_testfile ns-stale-regcache.c
 set options [list debug]
 if {[gdb_compile "$srcdir/$subdir/$srcfile" \
         $binfile executable $options] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 84319b142a5173c7375121b98b9b4e8a93e93206..7850b5ad98f3237c7a53aba7d4551e1868790ba8 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile nsintrall.c
 
 set options [list debug]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 04c6162d87bab46ba0d7ffce06a54e83461b7763..b82996b72b9429ece4b88d89ab52d7713962205a 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile nsmoribund.c
 
 set options [list debug]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 9446d6f3c6cf937dea622a0c12322e95a6b63bf3..64b27eacf91fe0e748c108218b2f5f4b42cf1e92 100644 (file)
@@ -30,7 +30,7 @@ standard_testfile nsthrexec.c
 
 set options [list debug]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 99719be76a12d7bda967bb02bf594a4d73e31af5..1ad9aecdc8b4ca3b0bae78f3ec79bdf8493f8790 100644 (file)
@@ -36,12 +36,12 @@ set exec_opts [list debug shlib=$lib_sl1 shlib_load]
 if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
      || [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 if { [gdb_compile_pthreads $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index 7e1d0123500bca1f0f1227eaf7ac74a0da36b566..1db1aba5afad87ddf564f25f2d14f888897b4558 100644 (file)
@@ -60,7 +60,7 @@ standard_testfile pthreads.c
 
 set options [list debug]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index 022f6761362c3a3b9aa92e680a15299126f3b1e4..5b4ba362ef0f13a9e46afb958c6d7ed3b79ac8ff 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile
 require allow_python_tests
 
 if {[build_executable $testfile.exp $testfile $srcfile] == -1} {
-    return -1
+    return
 }
 
 set remote_python_file [gdb_remote_download host \
index e4e54f1adf1e7eac173da1a3d755992574de2fd2..1f4dbf7b686bf46b0bde5c213dc2f343471bd3f9 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile basics.c
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 load_lib mi-support.exp
index 5b6e998d7d7215edb2e42080399f3f27fecc4e69..dd7b2961b03ffc3c0e417098e44493b809d42dcf 100644 (file)
@@ -35,7 +35,7 @@ if {[mi_clean_restart $::testfile]} {
 
 if {![mi_runto stop_frame]} {
     perror "Failed to stop in stop_frame"
-    return -1
+    return
 }
 
 mi_gdb_test "111-stack-list-frames" \
index 42255de20b3d3eef9cc8abc22bf8d8c3c7a43581..77a32060203bc07a3beeb387953c470e27eadf4e 100644 (file)
@@ -23,13 +23,13 @@ standard_testfile
 
 set opts {debug}
 if {[build_executable ${testfile}.exp ${testfile} ${srcfile} $opts]} {
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
-    return -1
+    return
 }
 
 mi_create_breakpoint do_nothing \
index 96d261ded404801271b5e9cd94d48f1a99fc3166..e129d5746a32e6d4b476a7ecee0ae961dfa755c4 100644 (file)
@@ -30,7 +30,7 @@ standard_testfile mi-sym-info-1.c mi-sym-info-2.c
 
 if {[build_executable "failed to prepare" ${testfile} \
         [list $srcfile $srcfile2] {debug}]} {
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
index bd7b606b87cd8e99a2d9db7f619aface58ca5ebf..e80475911fcf1c0648d65991419016f5056b0cf2 100644 (file)
@@ -32,7 +32,7 @@ standard_testfile
 
 if { [build_executable "failed to prepare" $testfile $srcfile \
          {debug pthreads}] } {
-    return -1
+    return
 }
 
 foreach_mi_ui_mode mode {
index 9f250912b2ce38322f883aa80b90e22c6c5ec1d1..ac76a5579c0c256a4775ded4a742caa3e0e0d3fc 100644 (file)
@@ -26,7 +26,7 @@ if {[mi_clean_restart]} {
 standard_testfile
 
 if {[build_executable ${testfile}.exp ${binfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 proc make_loc {num} {
index 0d8b091d0ac91d889e2b60dcfe894a7c52ecd0a9..5de4fc06c80f51213ea8abcc5ed2e99379adf3f1 100644 (file)
@@ -21,7 +21,7 @@ set MIFLAGS "-i=mi"
 standard_testfile
 
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
-    return -1
+    return
 }
 
 # This tests the resolution of PR 20039.
index e2450527de60c13b6174e1f99c56a7dc5dcb328f..27836717ef8d361c00c78fba5e4572c0853c9533 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile var-cmd.c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index cb249364b68fcbe2ba1945b395d2bc972728d68b..ad81441db057534d1cfec8e8cf3f26da9cfbf8f5 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile array.f90
 
 if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable {debug f90}] != ""} {
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index cbc672a14c2c1c9b54978e2b9fa1eff18b536707..8c0b8472272b50e9e7e85371dd96ee5d46f5dc07 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
@@ -1201,7 +1201,7 @@ mi_varobj_update * {psnp->ptrs.0.next.next.long_ptr} \
 mi_prepare_inline_tests $srcfile
 
 if { [mi_run_inline_test child_deletion] < 0 } {
-    return -1
+    return
 }
 
 
index d95c9847e96e8b6a854f95cf02fde024d8ca0488..bf207dad255e1e3f04bb681a803cb9d0dad40a33 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile var-cmd.c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index 918d0497806d425d687c184fef9b48171c78775c..08b6076dea0504df26a469b82735847dca0f7665 100644 (file)
@@ -20,13 +20,13 @@ standard_testfile .c
 set opts {debug}
 
 if {[build_executable $testfile.exp $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
-    return -1
+    return
 }
 
 # Test creating a register-based variable.  We pick
index 2efbd2903a13619c1419df22ea3ef793f0ca0d52..325291efe5009f3b1c9870b4db81e385793b388f 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile var-cmd.c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index 45e64bcc2c518943e1a13f78b3d2176a9049a1ec..80a97fbcbf2a45e5c92f986d3e5224a2d72b931d 100644 (file)
@@ -27,7 +27,7 @@ set shlib_path [standard_output_file ${testfile}-lib.so]
 
 if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $shlib_path {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set shlib_path_target [gdb_download_shlib $shlib_path]
@@ -39,7 +39,7 @@ lappend opts additional_flags=-DSHLIB_PATH=[quote_for_host $shlib_path_target]
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 proc do_test { separate_debuginfo } {
index 693db997791350b4d476e4da8fa2a944bd599a2e..0edb5b6b1881c42e3544c2724ac30c4a358a4249 100644 (file)
@@ -27,13 +27,13 @@ standard_testfile var-cmd.c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 # Just change the output binary.
 set binfile_bis [standard_output_file mi-var-invalidate_bis]
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_bis}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set testfile2 "basics"
@@ -41,7 +41,7 @@ set srcfile2 ${testfile2}.c
 set binfile2 [standard_output_file ${testfile2}]
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index 42495401702c023abb8eaea82a8147631a11fd68..366e15aa676c8ddced6d22f491600ba1b88c7330 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index b254de20c1e948a29620477b2e0b1a065dbb60d1..9a98e2adfa9c5bb9e6b6e2b1f641f85dfc31f5e0 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile .cc
 set opts {debug c++}
 
 if {[build_executable $testfile.exp $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index 856a1a370080ef3902ec60d3215884573250d207..7f972ea6ea6ae5ccc349497453d1523633aa5c4e 100644 (file)
@@ -33,7 +33,7 @@ proc mi_nonstop_resume { command test } {
 standard_testfile watch-nonstop.c
 
 if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 16a45d00265f135530c89ffa96ddce4a612874fb..fcea890d78af258d45d948d94865ef5233f2ffdd 100644 (file)
@@ -28,7 +28,7 @@ if {[info exists COMPILE]} {
 }
 
 if {[build_executable ${testfile}.exp ${binfile} ${srcfile} $opts]} {
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index 263568c39665cd57ae8a09ed7a8eb6ce3bb9e62a..f339f3fbebf50f24fe23b2a54edc96864e71ce54 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index e5b4adada38d0594ac2c14313a5af3abc2384926..def9faf36d5bf000fa99e5f3e63c69935cbb8cb8 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile var-cmd.c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index ea81a9ab2f6be724aa9c85511ad6ee7b71310d74..910dd26368471f22cb50c1e9667c86d861cd7842 100644 (file)
@@ -31,7 +31,7 @@ set MIFLAGS "-i=mi"
 standard_testfile
 
 if { [build_executable "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 # Helper proc to create a breakpoint location regexp.  NUM is the
index 915f40571e15f0d4f2666a62d6699b5976d94c5d..fe679b09f9762dc9685c1b2aaad6b8731fbc65fa 100644 (file)
@@ -29,7 +29,7 @@ standard_testfile
 
 if {[build_executable $testfile.exp $testfile ${srcfile} "debug"] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # The test driver.  SYNC_COMMAND specifies which command is used to
index 4de81c4cbd4cbe5c0aaf32c2beffe97d777f746b..875da82ff7cc8c80f4d4ab182e3f63c6e5ddedac 100644 (file)
@@ -31,7 +31,7 @@ lappend opts c++
 lappend opts additional_flags=-std=c++11
 
 if {[build_executable "failed to prepare" $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
index d3abbcb41455efa84fefd8b6ad02d9d99ef7c4e8..7555469b579f96470201190c326cddee1606f3de 100644 (file)
@@ -45,7 +45,7 @@ require allow_multi_inferior_tests
 set compile_options "debug pthreads"
 if {[build_executable $testfile.exp $testfile ${srcfile} ${compile_options}] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set main_break_line [gdb_get_line_number "main break line"]