]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GDB: testsuite: Python: Don't return -1 from top-level (sed)
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 29 Apr 2026 23:04:13 +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.python.

Approved-By: Tom Tromey <tom@tromey.com>
92 files changed:
gdb/testsuite/gdb.python/lib-types.exp
gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp
gdb/testsuite/gdb.python/py-arch-reg-groups.exp
gdb/testsuite/gdb.python/py-arch-reg-names.exp
gdb/testsuite/gdb.python/py-arch.exp
gdb/testsuite/gdb.python/py-as-string.exp
gdb/testsuite/gdb.python/py-auto-load-chaining.exp
gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp
gdb/testsuite/gdb.python/py-bad-printers.exp
gdb/testsuite/gdb.python/py-block.exp
gdb/testsuite/gdb.python/py-bp-locations.exp
gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp
gdb/testsuite/gdb.python/py-breakpoint.exp
gdb/testsuite/gdb.python/py-caller-is.exp
gdb/testsuite/gdb.python/py-cmd-exception.exp
gdb/testsuite/gdb.python/py-cmd-prompt.exp
gdb/testsuite/gdb.python/py-cmd.exp
gdb/testsuite/gdb.python/py-commands-breakpoint.exp
gdb/testsuite/gdb.python/py-connection-removed.exp
gdb/testsuite/gdb.python/py-connection.exp
gdb/testsuite/gdb.python/py-event-load.exp
gdb/testsuite/gdb.python/py-events.exp
gdb/testsuite/gdb.python/py-evsignal.exp
gdb/testsuite/gdb.python/py-evthreads.exp
gdb/testsuite/gdb.python/py-exec-file.exp
gdb/testsuite/gdb.python/py-explore-cc.exp
gdb/testsuite/gdb.python/py-explore.exp
gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp
gdb/testsuite/gdb.python/py-finish-breakpoint.exp
gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
gdb/testsuite/gdb.python/py-frame-args.exp
gdb/testsuite/gdb.python/py-frame-inline.exp
gdb/testsuite/gdb.python/py-frame.exp
gdb/testsuite/gdb.python/py-framefilter-addr.exp
gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp
gdb/testsuite/gdb.python/py-framefilter-mi.exp
gdb/testsuite/gdb.python/py-framefilter.exp
gdb/testsuite/gdb.python/py-inferior.exp
gdb/testsuite/gdb.python/py-infthread.exp
gdb/testsuite/gdb.python/py-label-symbol-value.exp
gdb/testsuite/gdb.python/py-lazy-string.exp
gdb/testsuite/gdb.python/py-linetable-empty.exp
gdb/testsuite/gdb.python/py-linetable.exp
gdb/testsuite/gdb.python/py-mi-cmd.exp
gdb/testsuite/gdb.python/py-mi-events.exp
gdb/testsuite/gdb.python/py-mi-notify.exp
gdb/testsuite/gdb.python/py-mi-objfile.exp
gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp
gdb/testsuite/gdb.python/py-mi.exp
gdb/testsuite/gdb.python/py-missing-debug.exp
gdb/testsuite/gdb.python/py-nested-maps.exp
gdb/testsuite/gdb.python/py-objfile-script.exp
gdb/testsuite/gdb.python/py-objfile.exp
gdb/testsuite/gdb.python/py-pending-frame-level.exp
gdb/testsuite/gdb.python/py-pp-cast.exp
gdb/testsuite/gdb.python/py-pp-integral.exp
gdb/testsuite/gdb.python/py-pp-maint.exp
gdb/testsuite/gdb.python/py-pp-re-notag.exp
gdb/testsuite/gdb.python/py-pp-registration.exp
gdb/testsuite/gdb.python/py-prettyprint-stub.exp
gdb/testsuite/gdb.python/py-progspace-events.exp
gdb/testsuite/gdb.python/py-progspace.exp
gdb/testsuite/gdb.python/py-prompt.exp
gdb/testsuite/gdb.python/py-read-memory-leak.exp
gdb/testsuite/gdb.python/py-record-btrace-threads.exp
gdb/testsuite/gdb.python/py-record-btrace.exp
gdb/testsuite/gdb.python/py-record-full.exp
gdb/testsuite/gdb.python/py-recurse-unwind.exp
gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp
gdb/testsuite/gdb.python/py-send-packet.exp
gdb/testsuite/gdb.python/py-shared.exp
gdb/testsuite/gdb.python/py-strfns.exp
gdb/testsuite/gdb.python/py-sym-artificial.exp
gdb/testsuite/gdb.python/py-symbol.exp
gdb/testsuite/gdb.python/py-symtab.exp
gdb/testsuite/gdb.python/py-sync-interp.exp
gdb/testsuite/gdb.python/py-template.exp
gdb/testsuite/gdb.python/py-thread-exited.exp
gdb/testsuite/gdb.python/py-thrhandle.exp
gdb/testsuite/gdb.python/py-typeprint.exp
gdb/testsuite/gdb.python/py-unwind-inline.exp
gdb/testsuite/gdb.python/py-unwind-maint.exp
gdb/testsuite/gdb.python/py-unwind-user-regs.exp
gdb/testsuite/gdb.python/py-unwind.exp
gdb/testsuite/gdb.python/py-value-cc.exp
gdb/testsuite/gdb.python/py-value.exp
gdb/testsuite/gdb.python/py-varobj.exp
gdb/testsuite/gdb.python/py-watchpoint.exp
gdb/testsuite/gdb.python/py-xmethods.exp
gdb/testsuite/gdb.python/python.exp
gdb/testsuite/gdb.python/tui-window-disabled.exp
gdb/testsuite/gdb.python/tui-window.exp

index f871abc633a50dcc110434c6307e0586644c4426..aa281c6443d540278c06dc318c3cfdf38a3611ef 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile .cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index c9846b877ac3c954096a417f2527a70d57725d02..52162fc995220cc831f977cd158b3e7e9a120a34 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # This proc restarts GDB, makes the inferior reach the desired spot - marked
index 5c06ebff942638bc4551c16a7f1d3d402e763099..6630143f03737f0b881ca888ad30f65fd5e125fc 100644 (file)
@@ -20,7 +20,7 @@ require allow_python_tests
 standard_testfile py-arch.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 954cbb77754a2e6df79e3af598bfece8ee6c694b..7bbb171e13e11084b94e91322052591ca4b7cc70 100644 (file)
@@ -20,7 +20,7 @@ require allow_python_tests
 standard_testfile py-arch.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 12b0e4a10c80f7eee73af1a64f9345100a6cf1c3..a2ac6ad4bfa177e6c7065e1c64add2ca88e4fd86 100644 (file)
@@ -17,7 +17,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index fd4d5d740f45710bbdc536eab7fc5ae6ed06c92c..3dc858db1adab5f8d0a21cf1c2a826bfd5be271a 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 5033f21526cce513897fa056645e5b4e91a47405..7a92ff0fac719962d6b7bc7ff39013ea856d98d9 100644 (file)
@@ -46,7 +46,7 @@ set remote_python_file [gdb_remote_download host \
 
 # Build the main test executable and start GDB.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index d4498dfc8cd83fb76d2d3f3b367fcdad18b13f92..9b8a10cf84f51cde169f14ecd7fb5498cbefaa95 100644 (file)
@@ -32,7 +32,7 @@ set binfile_lib [standard_output_file "${libname}.so"]
 # Compile library.
 if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} \
       {debug c++}] != "" } {
-    return -1
+    return
 }
 
 # Compile main program.
@@ -40,7 +40,7 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} \
       ${binfile} \
       executable \
       [list debug c++ shlib=$binfile_lib]] != "" } {
-    return -1
+    return
 }
 
 clean_restart
index 70704c6681187663b518f4f45439c404bf999c69..a96030d6b483985a44890ef56fcf0cedc7c89953 100644 (file)
@@ -23,11 +23,11 @@ require allow_python_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set remote_python_file [gdb_remote_download host \
index e4e309da05f0208f43bab3844fb3fc0924e89cf2..b0123c4d3b5787b96557a005fdffda6a0757a696 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 00ff1c9912ac2f1eec039e23a06a9537d8778e07..879306ea0f24d649afbb2a9a9342d71f99f8c33b 100644 (file)
@@ -20,7 +20,7 @@ require allow_python_tests
 standard_testfile
 
 if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {c++ debug}] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
@@ -28,7 +28,7 @@ save_vars { GDBFLAGS } {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Build a regexp string that represents the __repr__ of a
@@ -80,7 +80,7 @@ gdb_test "python print(gdb.breakpoints()\[1\].locations\[0\])" \
 gdb_continue_to_breakpoint "" ".*25.*"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "add"
index 74983a899bdcfc72e97a72d6083decf5db868606..0b9d493ada2905b29362f9a6b144b43db07ad185 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 clean_restart "${testfile}"
index 4215f3ca1de0040c7d9dfdd30dcb32d95db0a8e3..692d55eb0a21ab78738453598eaacdc5728dada2 100644 (file)
@@ -33,7 +33,7 @@ standard_testfile
 set options {debug c++}
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} ${options}] } {
-    return -1
+    return
 }
 
 set past_throw_catch_line [gdb_get_line_number "Past throw-catch."]
index e512b97d51692093b05dbc2ba13faf3d26813578..e195e42a8ca603b9a9860d1bf2e0f4fbd6742ae8 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 51c35f32ac9e2c1b96af9c7cd68e9ca52ec82f53..789a8b15c3e0aca97a4fc28065ae7091f0cf68ac 100644 (file)
@@ -24,7 +24,7 @@ require !use_gdb_stub allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
index a83c52ae1214f7a33eb899464534e6d7ec1625e6..5b81d88bbe71872a46559b7ea7124d97df76575d 100644 (file)
@@ -28,7 +28,7 @@ require allow_python_tests allow_gdbserver_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set bp_line [gdb_get_line_number "break-here"]
index be5c955e29b188bf6dab66ec2e21a4ae085ecd99..766a594d2f49e3cee799663862305c7c803f167b 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index ba2de2f68db7d68fe685481ec725f8aa3dcadf25..2b3842c816f6016e4d4e1aa97ea4fff063763cd1 100644 (file)
@@ -22,7 +22,7 @@ require allow_python_tests
 standard_testfile .c .py
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
index f2027043761b9ef474020cd0626559ff9965b9b3..abe3f78d73b15d4c64c3dea8550db8f934979d38 100644 (file)
@@ -30,7 +30,7 @@ require allow_python_tests
 standard_testfile py-connection.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 3045e981731239bd1f78eb9222e7bc7a0a0400df..e520e91368aac63111dd9367dc99c1a8e3094516 100644 (file)
@@ -25,7 +25,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 8e4f8d2992bf721159c440a672f4f37a25bfeb4a..a0ba644a7f670f2c09b6ee252328883a875273ec 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .c
 if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable {debug shlib_load}] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set testfile2 py-events-shlib
@@ -33,7 +33,7 @@ set binfile2 [standard_output_file ${testfile2}.so]
 if {[gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" \
         ${binfile2} {debug}] != ""} {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 set binfile2_dlopen [gdb_download_shlib $binfile2]
index 1e0513b997bf66a2bdbb00518d9a4bc14837241f..1177dd54e4823d7573e84c2e2b84a3fcfe8ff717 100644 (file)
@@ -28,7 +28,7 @@ set exec_opts [list debug shlib=$lib_sl]
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index e91f9af8f159296b2055da6a5aa78671397d8ea6..e9d4d2aa442fd7205890b0d721eda9466128671b 100644 (file)
@@ -16,7 +16,7 @@
 if {[gdb_protocol_is_remote]} {
     # RuntimeError: Could not find event thread
     kfail "python/12966" "Signal Thread 3"
-    return -1
+    return
 }
 
 load_lib gdb-python.exp
@@ -26,7 +26,7 @@ require allow_python_tests
 standard_testfile py-evthreads.c
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 clean_restart $testfile
 
index 1ab5b58c03c244a0dcba6609b8362b9e15b580c4..09efc3adb3a4c7a9626e4e07dbf1e6f8f47c33eb 100644 (file)
@@ -20,7 +20,7 @@ load_lib gdb-python.exp
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 180de990f5ba88bafd9c19469e52da08576896e9..6a73efc406ad067ffd02bdec4d3a54be2955df90 100644 (file)
@@ -26,12 +26,12 @@ set binfile2 [standard_output_file $testfile2]
 
 if {[build_executable "failed to prepare first executable" \
         $binfile1 $srcfile]} {
-    return -1
+    return
 }
 
 if {[build_executable "failed to prepare second executable" \
         $binfile2 $srcfile]} {
-    return -1
+    return
 }
 
 set binfile1 [gdb_remote_download host $binfile1]
index 7c04b227cfc059d1a5a6d403bec627c47d8ea313..772886b931f9fe7420d099bb115cee628f633bdf 100644 (file)
@@ -21,7 +21,7 @@ require allow_cplus_tests allow_python_tests
 standard_testfile py-explore.cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
-    return -1
+    return
 }
 
 set int_ptr_ref_desc "The value of 'int_ptr_ref' is of type 'int_ptr' which is a typedef of type 'int \\*'.*\'int_ptr_ref' is a pointer to a value of type 'int'.*"
index 78df5b9314fe284b96ca2a0eebda3af69622cbf5..276148da8f102fc222e192a37b2898b476b56432 100644 (file)
@@ -18,7 +18,7 @@ standard_testfile
 require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set SS "struct SimpleStruct"
index 52be47b68cf70506f395383f56858389c27806aa..627c9d0b6ef5009850391c204a35b786d6b2202d 100644 (file)
@@ -22,7 +22,7 @@ require allow_python_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index eb0790523e82dd73a672dbe77486ff739c713eb7..043416c724ccb496f4e710f16f3c437c26ae64fb 100644 (file)
@@ -31,7 +31,7 @@ set exec_opts [list debug shlib=$lib_sl]
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index 86a876650ee3d338e7b73d6c801e6e532f00559f..d782c577cfc1c6c9ab2de5e8a8b8c334cba201bd 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile .cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index ae688b2cc7532a610c77f92a2b34d7c6649e1645..3129c90ae4016cd1fb789c189620823b5be584c6 100644 (file)
@@ -18,11 +18,11 @@ standard_testfile
 require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set remote_python_file [gdb_remote_download host \
index f007a2ca4aa16dba80edf41609ce49dd1772eb46..a44136990c0215a0c8a92598832563d234c93ee7 100644 (file)
@@ -20,7 +20,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index dd0b948581c723e09d9a0d50e6d077792be08b4a..92a0ef3f7ebbe229993d38505a1fbcb7e54d5883 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # The following tests require execution.
@@ -206,7 +206,7 @@ gdb_test "python print(gdb.selected_frame().read_register(bad_object))" \
 # Compile again without debug info.
 gdb_exit
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 087da1b690f94df859362d2a61037532711bbc61..3c0436ce1972d71cc3e45cb16b117d6742878637 100644 (file)
@@ -24,7 +24,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 7cd5e2e66536e2c9fb2f0638e5a93c463df8d0ae..8a4bf001a6948e6997c83aad5f519a58dbaaa759 100644 (file)
@@ -24,7 +24,7 @@ require is_x86_64_m64_target
 # We cannot use prepare_for_testing as we have to set the safe-patch
 # to check objfile and progspace printers.
 if {[build_executable $testfile.exp $testfile $srcfile {}] == -1} {
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index 7b091b8f3652e495c729d7fab7e7cc2d5165c6d4..3b4cedba0918460c9b4296f43192597d1d88776e 100644 (file)
@@ -25,7 +25,7 @@ set pyfile py-framefilter.py
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
@@ -34,7 +34,7 @@ if {[mi_clean_restart $::testfile]} {
 
 if {[lsearch -exact [mi_get_features] python] < 0} {
     unsupported "python support is disabled"
-    return -1
+    return
 }
 
 mi_runto_main
index 292b72d66dc770a7545a41d10e863b99111e5fd6..a993ac5d54fd5d0965efc742c1722a348fff3431 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile
 # We cannot use prepare_for_testing as we have to set the safe-patch
 # to check objfile and progspace printers.
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
@@ -283,7 +283,7 @@ gdb_test "bt 1" "Quit" "bt 1 with KeyboardInterrupt"
 # We cannot use prepare_for_testing as we have to set the safe-patch
 # to check objfile and progspace printers.
 if {[build_executable $testfile.exp $testfile $srcfile {nodebug}] == -1} {
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index 0c27da1a7a4e464fb91bbd2373a63cfef137f311..8479427f726acb099aa1ebdca00a5e448787c515 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug}] != "" } {
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index 5859fff284cd6d5a584f31099c481b5ee89daccc..65ccc8f9a9e89720356bf4283474d339b474f4ab 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 gdb_test_multiline "install new_thread event handler" \
index b4d598773989696390ab08541499b54b9cf8c57a..c97ae72ec58dc91a8f5a6d4983402414247cdac4 100644 (file)
@@ -21,7 +21,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index aabcc3be6e509e6cb41bcc6a33b1a5357f9b0031..87d8eea46546bf5cddfc63d66fa73414f83d43db 100644 (file)
@@ -23,11 +23,11 @@ require allow_python_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main ]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break here"]
index 6113d35c1e3733799ac37f87dc8251a7431d1333..651fe9b6dbf3961d7432842341838e3195cfb998 100644 (file)
@@ -39,7 +39,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 1e4402a089f2093b266ac7fb848a3e30d2d8a6c6..5290c4a9beac34ee4eb4af2fbcc337a6d422de6a 100644 (file)
@@ -27,11 +27,11 @@ if {[info exists COMPILE]} {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_py_test_silent_cmd "python lt = gdb.selected_frame().find_sal().symtab.linetable()" \
index e13da6a3140462cbea8cd52780134f8bbeb906c9..b66a73c331f590c15d857ff5b0b7926484416010 100644 (file)
@@ -25,7 +25,7 @@ if {[mi_gdb_start]} {
 
 if {[lsearch -exact [mi_get_features] python] < 0} {
     unsupported "python support is disabled"
-    return -1
+    return
 }
 
 standard_testfile
index a6c724e0c4d551d821d7b8f13da1957afe8736c4..a2314aed322192fbe39a04d4dc9efedc4dae01ba 100644 (file)
@@ -26,7 +26,7 @@ set pyfile ${testfile}-gdb.py
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}]
index 220c5ca0babe50f7ce2e285e44b725ac2ddbd371..b08a667ae8469290e9c27f359119b5aa775589f4 100644 (file)
@@ -25,7 +25,7 @@ if {[mi_gdb_start]} {
 
 if {[lsearch -exact [mi_get_features] python] < 0} {
     unsupported "python support is disabled"
-    return -1
+    return
 }
 
 standard_testfile
index 4c8846981eb93ade5ec7c5280d4d1f20dc355302..99cd6b750a7c9084c77a4792056c10d0cdf5a17f 100644 (file)
@@ -25,7 +25,7 @@ set pyfile ${testfile}-gdb.py
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Make the -gdb.py script available to gdb, it is automagically loaded by gdb.
index dd97de3be677ab9380414baa2f5bee706c71edd7..f300efe9caea957e3f0bbd66e5d3f1323349d553 100644 (file)
@@ -26,7 +26,7 @@ require allow_python_tests
 standard_testfile
 
 if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
index 73b351e58ccb5952fa47d886ebcf8e9083872ca7..51025653b620a78739d3c5d8a11d8d1a55e39b84 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile py-prettyprint.c
 set pyfile py-prettyprint.py
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[mi_clean_restart $::testfile]} {
@@ -32,7 +32,7 @@ if {[mi_clean_restart $::testfile]} {
 
 if {[lsearch -exact [mi_get_features] python] < 0} {
     unsupported "python support is disabled"
-    return -1
+    return
 }
 
 mi_runto_main
@@ -342,7 +342,7 @@ gdb_exit
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-cxx" \
           executable {debug c++ additional_flags=-DMI}] != "" } {
     untested "failed to compile in C++ mode"
-    return -1
+    return
 }
 
 if {[mi_clean_restart ${::testfile}-cxx]} {
@@ -351,7 +351,7 @@ if {[mi_clean_restart ${::testfile}-cxx]} {
 
 if {[lsearch -exact [mi_get_features] python] < 0} {
     unsupported "python support is disabled"
-    return -1
+    return
 }
 
 with_test_prefix "varobj fake" {
index 2aebebd453c7fc3aba0cbd8406e900f728eda975..256e3e955c7728ebbb9f41e018add2d849d415a0 100644 (file)
@@ -21,14 +21,14 @@ standard_testfile
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile} \
     {debug build-id}]} {
-    return -1
+    return
 }
 
 # Remove debug information from BINFILE and place it into
 # BINFILE.debug.
 if {[gdb_gnu_strip_debug $binfile]} {
     unsupported "cannot produce separate debug info files"
-    return -1
+    return
 }
 
 set remote_python_file \
index 7869c9138d52bdfc4bed96855a76767112dbd3a6..f73829cb09a9176513adb023d39322241396beb6 100644 (file)
@@ -24,11 +24,11 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Break here"]
index 099a9986cfd73388ac9e7a28ed751d65509c57c2..c22163ae35657f2685775e7d51ab57f24c644425 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile
 require allow_python_tests
 
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index e823efbf3b15e9846deef5e00e581c27d6886640..0127b82936cb5dc7c55469bc26494734598bf418 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
@@ -116,7 +116,7 @@ gdb_test "python print(objfile.username)" "None" \
 # Now build another copy of the testcase, this time without debug info.
 
 if { [prepare_for_testing "failed to prepare" ${testfile}2 ${srcfile} {nodebug ldflags=-Wl,--strip-debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 8fc1d2653b15ed9aa3c74a020136e47b26207885..204c7c36c54b0115fe82cba2aceeaa3eda043a3a 100644 (file)
@@ -22,7 +22,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 0184565872df664802b7c46e94784b6aa1e3ac6b..fe14a9a430f51f007fb4a0d75a1974c5720f03d4 100644 (file)
@@ -22,11 +22,11 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto break_function]} {
-    return -1
+    return
 }
 
 set remote_python_file [gdb_remote_download host \
index 73dd86f4ea7668fda18fa67d50c856ae06a6a44b..190af2b219d1a8dc997d20892a81289042be55a5 100644 (file)
@@ -18,11 +18,11 @@ standard_testfile
 require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto tick_tock]} {
-    return -1
+    return
 }
 
 set remote_python_file [gdb_remote_download host \
index 7f3659450db6dcb4d9ba27d753810d4ebca9bb2f..8bb537c8d0e6c3da5ede16ed6a2f5812b9541c4f 100644 (file)
@@ -25,11 +25,11 @@ require allow_python_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \
index 73dd86f4ea7668fda18fa67d50c856ae06a6a44b..190af2b219d1a8dc997d20892a81289042be55a5 100644 (file)
@@ -18,11 +18,11 @@ standard_testfile
 require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto tick_tock]} {
-    return -1
+    return
 }
 
 set remote_python_file [gdb_remote_download host \
index ed65ed87a281102cd6f792ee7a275b5642569765..3d974b2120b6044c671a59dce95a7ce81720831b 100644 (file)
@@ -23,14 +23,14 @@ require allow_python_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 set remote_python_file [gdb_remote_download host \
                            ${srcdir}/${subdir}/${testfile}.py]
 
 if {![runto_main ]} {
-    return -1
+    return
 }
 
 proc prepare_test { } {
index 49723980a0b181c37a617f62acdf9501aa9ff1c9..491e8c36959660b1b6bd0cf2d7794942260c0c9e 100644 (file)
@@ -29,7 +29,7 @@ if { [build_executable_from_specs \
          $testfile {c++} \
          $srcfile {c++ debug} \
          $srcfile2 {c++}] == -1 } {
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index 143fa17126b8e8821d336c1a730b66f6d28e5b5a..c07a659910fa7a4a8c7f263aa84ba6522466fe7b 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if {[prepare_for_testing "preparing" $testfile $srcfile] == -1} {
-    return -1
+    return
 }
 
 set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-progspace-events.py]
index d11bb941acbfa12ab70d10e12b4913bd78070021..b3fc203c4b981daec037aace65183b175cd651b3 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 clean_restart
index 60186f71db696b7ab53f8da16ee9872a2afff6b0..cc149ae6230335051cd20eac0cb6fc1a82f72f9a 100644 (file)
@@ -24,7 +24,7 @@ load_lib prompt.exp
 require allow_python_tests
 
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 save_vars { INTERNAL_GDBFLAGS GDBFLAGS } {
index e7fcbf79b37d168ed4b9b255aba79b79f1103975..58343126e67cdc812d9a866db8f94b8d9dc25750 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 0b3115a5a6dd3dc097d93b025010789812e0b8ba..995e733a4aabb2c5f7ebe77999e10cb66ba4521d 100644 (file)
@@ -23,12 +23,12 @@ standard_testfile
 
 if { [gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug} ] != "" } {
     untested "failed to prepare"
-    return -1
+    return
 }
 clean_restart $testfile
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # set up breakpoints
index ade569c480c7a3c0e6eb481a9234cc5f66be9e8b..4e324e71fc092c425bbec0914984a3b50a7023c4 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 with_test_prefix "no or double record" {
index 125cecebfd25b512500fc3386705717a687e7528..95640770e9a5c1a5ce0f912d29dbb0019e6c3ed3 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 with_test_prefix "no or double record" {
index fbb538f390646326acaaee02e972dabbc03c7fe5..4df47a6e8b4b1872c905c2b9d953a200beb48a24 100644 (file)
@@ -29,7 +29,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
index 2b2fe112d9e5d606cea85587abd00d0507de3f29..576fd5a85d3d1099bc88bb9e765bc7bfa8702ec6 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .cc
 
 if {[prepare_for_testing $testfile.exp $testfile $srcfile \
     {debug c++ additional_flags="-std=c++11"}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index b0ca70e61a656731f49323e95b5a77e603e54824..4464c1c5123b70ed777f6424155816c40aecad8e 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile
 require allow_gdbserver_tests allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # Make sure we're disconnected, in case we're testing with an
index 6b8f0f0c1bde4638a72c96d82356d0dc46eafa59..0eef359d0b87b7f043f5654c5288662ff9df9031 100644 (file)
@@ -27,14 +27,14 @@ set library  [standard_output_file ${libfile}.sl]
 
 if { [gdb_compile_shlib ${srcdir}/${subdir}/${libsrc} ${library} "debug"] != "" } {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 set exec_opts [list debug shlib=${library}]
 
 if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index 79de2c4d8357d1f31f2c45418ec0d06e5e18dfb9..539ba984db028d0044dd07cf6b1910536bcfe9d7 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index e0592bc068b603b91c33b614882993a5b076d406..1ea2ea4a13fb1d48dbb9a73989a84f1800acc8c9 100644 (file)
@@ -49,11 +49,11 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_py_test_silent_cmd "python v = gdb.lookup_symbol('the_variable')" \
index 7d172d792e9fd9c42404f8b70fc0a0a37ae1c91e..90e724ca0313235374a2d4ac7b98f1846b4df204 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile py-symbol.c py-symbol-2.c py-symbol-3.c
 set opts { debug additional_flags=-DUSE_TWO_FILES }
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2 $srcfile3] $opts]} {
-    return -1
+    return
 }
 
 set readnow_p [readnow]
@@ -196,7 +196,7 @@ set testfile $testfile-cxx
 set binfile [standard_output_file $testfile]
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $srcfile $srcfile2] $opts] } {
-    return -1
+    return
 }
 
 gdb_test "python print (gdb.lookup_global_symbol ('(anonymous namespace)::anon') is None)" \
index 7a426faf3a573c9d5a5b418a4bf8029cf5270deb..786bdc75fc4d5a7ce03d52ffe822bbef37715966 100644 (file)
@@ -23,7 +23,7 @@ require allow_python_tests
 standard_testfile py-symbol.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 4323ee0443e54f3d83c29030a598be19193f8a50..5fb67b1eb5b4f1bd54189d80aea398b01bc48655 100644 (file)
@@ -25,7 +25,7 @@ require can_spawn_for_attach allow_python_tests
 load_lib gdb-python.exp
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set test_spawn_id [spawn_wait_for_attach $binfile]
index 1bf3604e98fab0a3923649d9253cbb97e21766fe..9099e7e32dc0fe7b5a390ab565cd7c6577ab65b8 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile .cc
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
          {debug c++}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 862adeb4587dbf10c0869f80a1723ba16ae756e8..908af96d9d5b9867ef5ba259a348ac14a1d44b6e 100644 (file)
@@ -20,7 +20,7 @@ load_lib gdb-python.exp
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
@@ -33,7 +33,7 @@ gdb_test_no_output "source ${pyfile}" "load python file"
 gdb_test "test-events" "Event testers registered."
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 
index 2aeb7777f0d31f272f135dc79058aab0b16a7fca..3c9effc8d6be7bedb91e7fb16c005b0119ee6a01 100644 (file)
@@ -26,7 +26,7 @@ require allow_python_tests
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index f8ccdbf495449fd726831c2bac26714d9f1c774c..ab53f26d8172a0526a0d77a32137ec2183bb5253 100644 (file)
@@ -21,7 +21,7 @@ load_lib cp-support.exp
 standard_testfile .cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
-    return -1
+    return
 }
 
 set remote_python_file [gdb_remote_download host \
index 0f63e4310f71ca9f99ec23aaf57639e7bb84c236..ef9b00eccc8bb6c5d7a29ebcfc5a095a95a1356f 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
          debug] } {
-    return -1
+    return
 }
 
 # The following tests require execution.
index 10d1f722db2d1c504432d011b464760e659bde02..e2ec925a0808990f41ae29d2317dd2a9b8e91f0d 100644 (file)
@@ -23,13 +23,13 @@ require allow_python_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "source ${pyfile}" "Python script imported" \
index ac81d98c58263cc4427194318da72aefc4537bce..c594bf74ceef383388d9bff71ce8f52a7f0350ce 100644 (file)
@@ -43,7 +43,7 @@ require allow_python_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 784d9dfcb64d33e6bbfd869a456891051ce9471d..058caaf1efc79a7639fabea6ec1f512409c330b9 100644 (file)
@@ -28,7 +28,7 @@ standard_testfile
 set flags "additional_flags=-fno-stack-protector"
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} "debug $flags"] } {
-    return -1
+    return
 }
 
 # This test runs on a specific platform.
index 70135bd7ec76a7b6954673d7b475ec789e8cec08..1d65d617e30db88dfac8d49b95e94db99332cf5a 100644 (file)
@@ -21,7 +21,7 @@ require allow_cplus_tests allow_python_tests
 standard_testfile .cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index a384f4139dd425c063c4a06818c747b859fb164d..3746a6cbc0bce8d76087f965159607bd012fa360 100644 (file)
@@ -800,7 +800,7 @@ proc test_unavailable {} {
 
 # Build C version of executable.  C++ is built later.
 if { [build_inferior "${binfile}" "c"] < 0 } {
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
index 2b1de110e3b9c64a8831250de75c5cdd042541da..e8428e3d07456db8faa5dc6bf4d2c2943973528c 100644 (file)
@@ -22,7 +22,7 @@ require allow_python_tests
 standard_testfile
 
 if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != ""} {
-    return -1
+    return
 }
 
 mi_clean_restart $::testfile
index 50ffaab6594bd825ce9b1a0629c04f0cc086c0eb..2fc366228a14517ca52d577b70acec3f99599c16 100644 (file)
@@ -20,7 +20,7 @@ load_lib gdb-python.exp
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 require allow_python_tests
index 087e93e3a6f42e363eb56200577c03465fc9cd43..52f0a7597093ca84eb1a818c3dca57e09a6c2c20 100644 (file)
@@ -23,7 +23,7 @@ require allow_cplus_tests allow_python_tests
 standard_testfile py-xmethods.cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 07c51e7ac3fa00a8c077bfa1060976e7b1089185..f2f32019e4c2d4c2a802648726a6512080de9b7d 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile python.c python-1.c
 
 if {[build_executable $testfile.exp $testfile \
         [list $srcfile $srcfile2] debug] == -1} {
-    return -1
+    return
 }
 
 clean_restart
index b90f95c05ac01cd3a7ea4113d065494bcc2e5ed9..35e94b278215e61a0ccbded985db57c0fcc8c22c 100644 (file)
@@ -32,7 +32,7 @@ lappend flags debug
 lappend_include_file flags $srcdir/lib/attributes.h
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile} $flags] == -1} {
-    return -1
+    return
 }
 
 clean_restart
index 01f290be6aa0c79c93eb963283aa55e5d651ae61..f813908dba49a8cf07a75bf7ed2b93bf0434bf29 100644 (file)
@@ -23,7 +23,7 @@ tuiterm_env
 standard_testfile py-arch.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 clean_restart