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

Approved-By: Tom Tromey <tom@tromey.com>
107 files changed:
gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp
gdb/testsuite/gdb.threads/async.exp
gdb/testsuite/gdb.threads/attach-into-signal.exp
gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp
gdb/testsuite/gdb.threads/attach-non-stop.exp
gdb/testsuite/gdb.threads/attach-slow-waitpid.exp
gdb/testsuite/gdb.threads/attach-stopped.exp
gdb/testsuite/gdb.threads/bp_in_thread.exp
gdb/testsuite/gdb.threads/break-while-running.exp
gdb/testsuite/gdb.threads/check-libthread-db.exp
gdb/testsuite/gdb.threads/clone-attach-detach.exp
gdb/testsuite/gdb.threads/clone-new-thread-event.exp
gdb/testsuite/gdb.threads/clone-thread_db.exp
gdb/testsuite/gdb.threads/continue-pending-after-query.exp
gdb/testsuite/gdb.threads/continue-pending-status.exp
gdb/testsuite/gdb.threads/create-fail.exp
gdb/testsuite/gdb.threads/current-lwp-dead.exp
gdb/testsuite/gdb.threads/del-pending-thread-bp.exp
gdb/testsuite/gdb.threads/detach-step-over.exp
gdb/testsuite/gdb.threads/dlopen-libpthread.exp
gdb/testsuite/gdb.threads/execl.exp
gdb/testsuite/gdb.threads/fork-child-threads.exp
gdb/testsuite/gdb.threads/fork-thread-pending.exp
gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp
gdb/testsuite/gdb.threads/gcore-stale-thread.exp
gdb/testsuite/gdb.threads/gcore-thread.exp
gdb/testsuite/gdb.threads/hand-call-in-threads.exp
gdb/testsuite/gdb.threads/hand-call-new-thread.exp
gdb/testsuite/gdb.threads/ia64-sigill.exp
gdb/testsuite/gdb.threads/inf-thr-count.exp
gdb/testsuite/gdb.threads/infcall-thread-announce.exp
gdb/testsuite/gdb.threads/info-threads-cur-sal.exp
gdb/testsuite/gdb.threads/info-threads-options.exp
gdb/testsuite/gdb.threads/interrupt-while-step-over.exp
gdb/testsuite/gdb.threads/interrupted-hand-call.exp
gdb/testsuite/gdb.threads/killed-outside.exp
gdb/testsuite/gdb.threads/killed.exp
gdb/testsuite/gdb.threads/leader-exit.exp
gdb/testsuite/gdb.threads/linux-dp.exp
gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp
gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp
gdb/testsuite/gdb.threads/manythreads.exp
gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp
gdb/testsuite/gdb.threads/multi-create.exp
gdb/testsuite/gdb.threads/multiple-step-overs.exp
gdb/testsuite/gdb.threads/names.exp
gdb/testsuite/gdb.threads/next-bp-other-thread.exp
gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp
gdb/testsuite/gdb.threads/no-unwaited-for-left.exp
gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
gdb/testsuite/gdb.threads/non-ldr-exc-2.exp
gdb/testsuite/gdb.threads/non-ldr-exc-3.exp
gdb/testsuite/gdb.threads/non-ldr-exc-4.exp
gdb/testsuite/gdb.threads/non-ldr-exit.exp
gdb/testsuite/gdb.threads/non-stop-fair-events.exp
gdb/testsuite/gdb.threads/omp-par-scope.exp
gdb/testsuite/gdb.threads/omp-task.exp
gdb/testsuite/gdb.threads/pending-step.exp
gdb/testsuite/gdb.threads/print-threads.exp
gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp
gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.exp
gdb/testsuite/gdb.threads/pthread_cond_wait.exp
gdb/testsuite/gdb.threads/pthreads.exp
gdb/testsuite/gdb.threads/queue-signal.exp
gdb/testsuite/gdb.threads/reconnect-signal.exp
gdb/testsuite/gdb.threads/schedlock.exp
gdb/testsuite/gdb.threads/siginfo-threads.exp
gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp
gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp
gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp
gdb/testsuite/gdb.threads/signal-sigtrap.exp
gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.exp
gdb/testsuite/gdb.threads/sigstep-threads.exp
gdb/testsuite/gdb.threads/sigthread.exp
gdb/testsuite/gdb.threads/step-bg-decr-pc-switch-thread.exp
gdb/testsuite/gdb.threads/step-over-lands-on-breakpoint.exp
gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp
gdb/testsuite/gdb.threads/stepi-random-signal.exp
gdb/testsuite/gdb.threads/stop-with-handle.exp
gdb/testsuite/gdb.threads/switch-threads.exp
gdb/testsuite/gdb.threads/thread-bp-deleted.exp
gdb/testsuite/gdb.threads/thread-execl.exp
gdb/testsuite/gdb.threads/thread-find.exp
gdb/testsuite/gdb.threads/thread-specific-bp.exp
gdb/testsuite/gdb.threads/thread-specific.exp
gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
gdb/testsuite/gdb.threads/thread_check.exp
gdb/testsuite/gdb.threads/thread_events.exp
gdb/testsuite/gdb.threads/threadapply.exp
gdb/testsuite/gdb.threads/threadcrash.exp
gdb/testsuite/gdb.threads/threxit-hop-specific.exp
gdb/testsuite/gdb.threads/tid-reuse.exp
gdb/testsuite/gdb.threads/tls-core.exp
gdb/testsuite/gdb.threads/tls-nodebug-pie.exp
gdb/testsuite/gdb.threads/tls-nodebug.exp
gdb/testsuite/gdb.threads/tls-sepdebug.exp
gdb/testsuite/gdb.threads/tls-shared.exp
gdb/testsuite/gdb.threads/tls-so_extern.exp
gdb/testsuite/gdb.threads/tls-var.exp
gdb/testsuite/gdb.threads/tls.exp
gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp
gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp
gdb/testsuite/gdb.threads/vfork-multi-inferior.exp
gdb/testsuite/gdb.threads/watchthreads-reorder.exp
gdb/testsuite/gdb.threads/watchthreads.exp
gdb/testsuite/gdb.threads/watchthreads2.exp
gdb/testsuite/gdb.threads/wp-replication.exp

index 35da068db6b6e831dbb7df36fc95ed5dc6e60b93..d0db40c4be5b72b105031b3bcb6e776893657f61 100644 (file)
@@ -38,7 +38,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 # The test proper.  NON_STOP indicates whether we're testing in
index fa57796452f2274d5d99ae273aa2e713a058c2dd..2fe787f6bed54579e6032c15c098c8e8c7b117bd 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 # At this point GDB will be busy handling the breakpoint hits and
index 7c9c30036d2be9ffccc04c6217b6ab498afef55f..2f682ebb0738dfa20032b2adec39fdf4a805ca76 100644 (file)
@@ -121,7 +121,7 @@ proc corefunc { threadtype executable } {
 #
 if {[build_executable $testfile $executable_nothr $srcfile] == -1} {
     untested "attach-into-signal.exp (nonthreaded)"
-    return -1
+    return
 }
 
 corefunc nonthreaded ${executable_nothr}
@@ -130,7 +130,7 @@ corefunc nonthreaded ${executable_nothr}
 #
 if  { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" [standard_output_file ${executable_thr}] executable {debug additional_flags=-DUSE_THREADS}] != "" } {
     untested "attach-into-signal.exp (threaded)"
-    return -1
+    return
 }
 
 corefunc threaded ${executable_thr}
index 16e33c027b098e639e20ccd685ee8d1ef6473cb3..0f1b141b1ea10b22e4d268453e550c7002ce57dc 100644 (file)
@@ -195,7 +195,7 @@ set options { "additional_flags=-DTIMEOUT=$timeout" debug pthreads }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         $options] == -1} {
-    return -1
+    return
 }
 
 test
index 3f55459e7ede6ffa95ab58c5bb4ab1b464c11ba1..3d363398cc2390328d543844f500009439ecd762 100644 (file)
@@ -134,7 +134,7 @@ proc test {target_non_stop non_stop cmd} {
 }
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 foreach_with_prefix target-non-stop {"off" "on"} {
index c71cd98501f4b13d0d03bfda49f8cb9d711e9d16..343a96bc5112bb4bd7a7d4faba173b1b7e045be7 100644 (file)
@@ -98,7 +98,7 @@ if { [gdb_spawn_with_ld_preload $libobj] == -1 } {
     # Make sure we get UNTESTED rather than UNRESOLVED.
     set errcnt 0
     untested "Couldn't start GDB with preloaded lib"
-    return -1
+    return
 }
 
 # Load binary, and attach to running program.
index 63a8f481e2e03977d328787375f234f1075d963b..2f84c6d77f2fb84ae69c0be95d640235ad616cca 100644 (file)
@@ -79,7 +79,7 @@ proc corefunc { threadtype } {
 #
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "attach-stopped.exp (unthreaded)"
-    return -1
+    return
 }
 
 corefunc nonthreaded
@@ -88,7 +88,7 @@ corefunc nonthreaded
 #
 if  { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DUSE_THREADS}] != "" } {
     untested "attach-stopped.exp (threaded)"
-    return -1
+    return
 }
 
 corefunc threaded
index 001eeaae6e98565c4aa5369fd10c6a1c500dc808..07f5e2f1b8071b1966c00fcfffdb0734b8917de4 100644 (file)
@@ -21,7 +21,7 @@
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 clean_restart $::testfile
index 9d500f38b148a1b603b6cd8f419fa43ee01544c8..c4ad127d982c13caade0f18436bc22237585d193 100644 (file)
@@ -25,7 +25,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 # The test proper.  UPDATE_THREAD_LIST indicates whether we should do
index 3e95d7e84a7cff58813bb2960128673860dc2ae2..1110c1c848ec23981976aa6abf7886af400f481a 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable debug] != "" } {
-    return -1
+    return
 }
 
 # Case 1: libthread_db fakes a single thread with th_unique == NULL.
index e3294b8c7bfb217dc9c3376c841be4e560f2621c..cd4544a8057f4a7463b85d9e3a2349be2cfe7ea7 100644 (file)
@@ -28,7 +28,7 @@ require can_spawn_for_attach
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 set test_spawn_id [spawn_wait_for_attach $binfile]
index 44f4f7e631093144a0d205033cc1399db667ad16..2e49766f33d1b6e5bc25963edd39b717d794d9c0 100644 (file)
@@ -21,11 +21,11 @@ if {![istarget *-*-linux*]} {
 }
 
 if { [prepare_for_testing "failed to prepare" clone-new-thread-event] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 gdb_test "continue" \
index a5a185ad9c83c169d4da3e7ebc0f269f84fd51c6..77297a8e74b41844d280f55a89a710447f20e592 100644 (file)
@@ -23,11 +23,11 @@ if {![istarget *-*-linux*]} {
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "break clone_fn" "Breakpoint.*at.*file.*$srcfile.*line.*"
index 43f5bd368b192b4a11994ad0ad9ca64cc1582d77..97f9081443a753348e52deb3e9287efc7ff01d46 100644 (file)
@@ -45,7 +45,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 proc test {} {
index 1ffa6fd324258b1d49563a1bb33b2daa3641bc3b..01fb61c3b5252c27a36f73f1fa054c4286fc1ad6 100644 (file)
@@ -22,11 +22,11 @@ require {!target_info exists gdb,nointerrupts}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set break_line [gdb_get_line_number "break here"]
index b2528281b7e1df0dc6bab87ed31afef80cdc86bc..c77ccab17ae2eb9c3174600e681f60d7682fdd1c 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 set executable ${testfile}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 set iterations 10
index 5c9aa76e9d9aca7942c6d611bb188192fe9e922d..272771114a3ffebe87eb69832e9cf8a9470b4a3c 100644 (file)
@@ -30,11 +30,11 @@ if {![istarget *-*-linux*]} {
 }
 
 if { [prepare_for_testing "failed to prepare" current-lwp-dead] } {
-    return -1
+    return
 }
 
 if {[runto_main] <= 0} {
-    return -1
+    return
 }
 
 # Run to "fn" so that thread 2 is made current.
index 1870adcde22a4481fb40b9d4af7811f61fc4b5ab..09a6f56a5660362bf327f2474665f7f13047031b 100644 (file)
@@ -30,7 +30,7 @@ set binfile_lib [standard_output_file $libname.so]
 
 if { [gdb_compile_shlib $srcfile_lib $binfile_lib {}] != "" } {
     untested "failed to compile shared library 1"
-    return -1
+    return
 }
 
 set binfile_lib_target [gdb_download_shlib $binfile_lib]
@@ -39,7 +39,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
          [list debug \
               additional_flags=-DSHLIB_NAME=\"$binfile_lib_target\" \
               shlib_load pthreads]] } {
-    return -1
+    return
 }
 
 gdb_locate_shlib $binfile_lib
index 85198111fd07f107ad97673e52c9054b0e57698f..b034788ae6cfa9bae442354eb46de3039bdded1b 100644 (file)
@@ -354,11 +354,11 @@ proc_with_prefix test_detach_quit {condition_eval target_non_stop \
 set options { "additional_flags=-DTIMEOUT=$timeout" debug pthreads }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options] == -1} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Probe support for "set breakpoint condition-evaluation target".
index 1dacbdbb1b289de04593b1913c49e7d158833351..03ce0dd1612d3626bec504eba7a9276b160cfbcf 100644 (file)
@@ -33,12 +33,12 @@ set lib_dlopen [shlib_target_file ${executable}.so]
 set relink_args [build_executable_own_libs ${testfile}.exp ${executable}.so $srclibfile {debug shlib_pthreads} no]
 if {$relink_args == "" || ![prelink_no $relink_args]
     || [prepare_for_testing "failed to prepare" ${executable} ${srcmainfile} {debug shlib_load}] } {
-    return -1
+    return
 }
 gdb_load_shlib $binfile_lib
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 set probe_names {}
@@ -62,7 +62,7 @@ foreach probe_name $probe_names {
 
 if { !$have_probe } {
     untested "no matching probes"
-    return -1
+    return
 }
 
 # We link the exec without -lpthread, but libpthread.so may already be loaded at main
index fcbd865a9e84637a42433688e9ae5604f969d4ae..a5ad5a48ca9246ec4a12f21246323b595432f38e 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 # New image, that does not load a thread library.
@@ -28,7 +28,7 @@ set srcfile1 ${testfile1}.c
 set binfile1 [standard_output_file ${testfile1}]
 
 if {[gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile1}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index fec474f4c70197b7e5b1d5851bc9ce56dee28a7c..c6090eaaaf42d88a0077e85d8777d457369c475d 100644 (file)
@@ -18,7 +18,7 @@ require allow_fork_tests
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 6f81e5e7e4914c803cf5b9e009d1bea25399bf21..0cf4878d13f8d64611d00424013a60f88f832a8c 100644 (file)
@@ -18,7 +18,7 @@ require allow_fork_tests
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 231709369e5cdd7a7f330a9cb0b0edb5d29e1697..b3a2fdb9ac16fc26737fa25944fc674ba7268536 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile
 set linenum [gdb_get_line_number "set break here"]
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 # Assume yes.
index 1f1974109fea074818fdc2de5c94faf9cbe5f246..9faa2686c76704a106d2ad84bb32ae0fbe953bec 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile
 set corefile [standard_output_file ${testfile}.core]
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != ""} {
-    return -1
+    return
 }
 
 clean_restart ${testfile}
@@ -25,7 +25,7 @@ clean_restart ${testfile}
 gdb_test_no_output "set non-stop on"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_multiple "info threads" "threads are supported" {
index 75c538074a9210a6915d976d47be55043470cc61..c3b8c56dd4b949eda737a0a4116950e3e1411e09 100644 (file)
@@ -37,7 +37,7 @@ set opts [list debug]
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${objfile}" object $opts] != ""
     || ([gdb_compile_pthreads "${objfile}" "${binfile}" executable [concat $opts {ldflags=-Wl,-z,norelro}] ] != ""
        && [gdb_compile_pthreads "${objfile}" "${binfile}" executable $opts] != "") } {
-    return -1
+    return
 }
 
 # Now we can proceed with the real testing.
@@ -56,7 +56,7 @@ set nl "\r\n"
 set timeout 30
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_multiple "info threads" "threads are supported" {
index f2d93cedfed908ba80942e011b79cb1f48ec4faa..f6d29720cc6f20139f3ebb70cca8908a194668cd 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 require {!target_info exists gdb,cannot_call_functions}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS"]] != "" } {
-    return -1
+    return
 }
 
 proc get_dummy_frame_number { } {
index f9c59089a2baeaee5d12cb4980d3c8c6c5f853d6..891e47e6c9c4612c857756cc60b1e8942bdc4ad2 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index e69b9478998fa663b6661403dc00abae754a0f0d..b19c62e8ded6863befabd2199e12c650a6f5a030 100644 (file)
 
 standard_testfile
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" ${binfile} executable [list debug additional_flags=-lrt]] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set test "info addr label"
index af48648e5ca52e48576ba032e9ac304b3cb90eb0..feb81ab6673e6bfaa981a3d35ce76119755a7b44 100644 (file)
@@ -37,7 +37,7 @@ standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile \
         {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 # Start GDB.  Ensure we are in non-stop mode as we need to read from
@@ -48,7 +48,7 @@ save_vars {GDBFLAGS} {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint breakpt
@@ -131,7 +131,7 @@ proc wait_for_stage { num } {
 # Wait until we can see that the extra thread has been created.
 if {![wait_for_stage 1]} {
     unresolved "failed to see thread start"
-    return -1
+    return
 }
 
 
@@ -160,7 +160,7 @@ gdb_test_no_output "set variable spin = 0" \
 # Wait until the extra thread has exited.
 if {![wait_for_stage 2]} {
     unresolved "failed to see thread start"
-    return -1
+    return
 }
 
 # Check that the second thread has gone away.
index 311daaca87cc6fa8be318ffb78a3f766ed463b3e..a554670f1e6e0f3a10becbac67467ca7487dca9b 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint breakpt
index 1b4fa3a8d3eee735c8bc10cbc32227af109a27ab..3e8533674d4688acae9303454eab2f426ba1c14d 100644 (file)
@@ -20,13 +20,13 @@ set executable ${testfile}
 if {[gdb_compile_pthreads \
         "${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}" \
         "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${executable}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "start"
index 15c4904892e7db51666adf5afc8b1274636c93b7..476c62cb323c776cc4abb3d793833377c988cb88 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable debug] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
@@ -28,7 +28,7 @@ save_vars { GDBFLAGS } {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "stop_here"
index 446af5e23eca0be13b2c24ce2aadf6e881b43a3e..e8b29dce2fa3c332ddb4ca85a2335209adb8fbb7 100644 (file)
@@ -20,11 +20,11 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Read the number of threads out of the inferior.
index e921ea0cf06fd93c117a52b960a851b373274f5d..23a3d038c09a3dd467f828d1685f9e6f202df30a 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile
 require {!target_info exists gdb,cannot_call_functions}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS"]] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 51726ebf0e9ce35df3b2ec7571722d8b9503fdf6..67d6c6b32239d81c3e7f595413b88be89f96aedf 100644 (file)
@@ -20,17 +20,17 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {pthreads debug}] == -1} {
-    return -1
+    return
 }
 
 if { ![runto "all_started"] } {
-    return -1
+    return
 }
 delete_breakpoints
 
 set testpid [get_valueof "" "pid" -1 "get pid of inferior"]
 if { $testpid == -1 } {
-    return -1
+    return
 }
 remote_exec target "kill -9 ${testpid}"
 
index 96fe37dbefed3ee94043d4636e07b6ebacd00f69..39b60dff8dd43f04ea1a5ab886082d8ffb344f42 100644 (file)
@@ -58,7 +58,7 @@
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 
index 9aa7d0fdf3f1517606d6f9fd06a737bf1db2801b..b5e6f558ac7b1cd505f8854b2dd77ed6de91c62b 100644 (file)
@@ -21,13 +21,13 @@ standard_testfile
 set executable ${testfile}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${executable}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here"]
index 5592e364e1f45e0f4b6a8c2c7781b468e8770e02..42773f2293b5bce00313c1f4464c1193b97dc36e 100644 (file)
@@ -41,7 +41,7 @@ if {![istarget *-*-linux-gnu*]} {
 
 standard_testfile
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != ""} {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index a26abab630d5b6e86c60f839c31ab0f30e966bc0..3a9e7c193a58db14239a561385ad908b3d67f1fe 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile
 if {[gdb_compile_pthreads \
         "${srcdir}/${subdir}/${srcfile}" \
         "${binfile}" executable {debug} ] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 7df41da642c3dad2ffc6f3b0599d7daebae2ab00..717eca236c035b71e8c77fef8c185e0625070e64 100644 (file)
@@ -40,7 +40,7 @@ require allow_python_tests
 
 if {[build_executable "failed to prepare" $testfile $srcfile \
         {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 # Run the test.  When SPAWN_INFERIOR is true the inferior is started
index c0c0c8917c81c2498e9ef120ae18a5300ee499ea..aabbb24b4d9ef056a7dd800ea69d653874ff7261 100644 (file)
@@ -28,7 +28,7 @@ if {[info exists DEBUG]} {
 }
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 881a489b04d68ef16e9f736b7fb08d0695911e49..cc5fe888f878a35a7d693b69be43d02392111f72 100644 (file)
 standard_testfile multi-create.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set pagination off"
 gdb_test_no_output "set non-stop on"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Create a breakpoint that does "info threads" when hit, which will be
index 9bc49b6b7e1a789bdbbac8561893ba4dec36d515..a34ddfe699578ad18cccf8d79a9d246c87a9bd44 100644 (file)
@@ -18,7 +18,7 @@ standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 8433e16340ad2ef3f905fd576533e46c93cfeb04..2159718f2a639c5832eadf139c51643cd87bfe4e 100644 (file)
@@ -23,7 +23,7 @@ require {!target_info exists gdb,nosignals}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable [list debug "incdir=${objdir}"]] != "" } {
-    return -1
+    return
 }
 
 # Prepare environment for test.
index dc3ed4eaa2caa9626fe5e6bba606e27533154f9a..31f36f1b3d7c28df2158a1d2cda4f4d7ea57dc54 100644 (file)
@@ -21,7 +21,7 @@ require {!target_info exists gdb,no_thread_names}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
-    return -1
+    return
 }
 
 if {![runto "all_threads_ready"]} {
index 56f2c8440e987161f7d87a529c91674599ad6556..9f07ad6aaa9b6de25527e3c472cf5eb8ff1797b0 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile \
         {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 # Test all "set scheduler-locking" variants.
index aa6fc1965a92db6de35cb531976823be8de086ba..6852e8d7f8765e4bd30e188d85285550c69a619a 100644 (file)
@@ -24,7 +24,7 @@ set linenum [gdb_get_line_number "set break here"]
 
 if {[prepare_for_testing "failed to prepare" \
         $testfile $srcfile {c++ debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index e21a7fe4c9fa172e004ca99f3c9d8cd290f9440e..621da59db46f82c67c165d89667e660b51a1f5fd 100644 (file)
@@ -20,13 +20,13 @@ standard_testfile
 set executable ${testfile}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${executable}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint $srcfile:[gdb_get_line_number "break-here"]
index 360630e6f66a59b6cf3ffefbeffa80d9a15c6084..442b6fb639ff1165d4e4adf5b464bbf79f5adeba 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile
 set executable ${testfile}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 proc do_test { lock_sched nonstop } {
index f331e823c2b2a25911c9cbdb4f29a33aa5ca26fc..ead262cc2b50b14fb1684dc5bce867139a14ded1 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile
 set executable ${testfile}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 proc do_test { lock_sched nonstop } {
index 76ac3f1556289d19200e21bab50171cf080e7757..2ad3a84d24bf2115c37c38f3f839cb701ee2854e 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile
 set executable ${testfile}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 proc do_test { lock_sched nonstop } {
index a895a51f4a99e07d939f31241b0c7aa8fe53c69c..fad49047ac39ea83a88a3f31e42b15ca3d69bdfd 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile
 set executable ${testfile}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 proc do_test { lock_sched nonstop } {
index e49f3ce86074e90a34590323918eec490697eced..6b5e85fd2fa0e96ae40e494da9794f94ee6fd0d4 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile
 set executable ${testfile}
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here"]
index 7593c2432f3c2b9e26bacced6b747a372e4bed39..53d62963f62be00e029c2c5ca66fe9ae04b1f79b 100644 (file)
@@ -23,13 +23,13 @@ require {!target_info exists gdb,nosignals}
 
 set options { "additional_flags=-DTIMEOUT=$timeout" debug pthreads }
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options] == -1} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set non-stop on"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # We want "handle print", to make sure the target backend reports the
index 5f919a1952a1bce8add11bd821693f3dc29116cb..b561bf2f4a5b374ac0a1b0e8d460c16ff2478353 100644 (file)
@@ -36,7 +36,7 @@ if {[support_nested_function_tests]} {
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 # gdb_openmp_setup may be defined to set auto-load safe-path and possibly
@@ -61,7 +61,7 @@ if {[info procs gdb_openmp_setup] != ""} {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # We want to invoke setup_kfail (and in some cases setup_xfail) when
index a77ffe86cf95d5270d12b9a810269353b0a92561..636bcf98915969cce2e9d492051ef014b6c2824f 100644 (file)
@@ -24,7 +24,7 @@ set have_nested_function_support 0
 set opts {openmp debug}
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 if {[info procs gdb_openmp_setup] != ""} {
@@ -35,7 +35,7 @@ if {[info procs gdb_openmp_setup] != ""} {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "omp task shared"]
index 4395195a703fd124448cfb0d8e1f82bfdafd38a2..c9ff1de32c89c801ae18b26ba45549ab70fe2cf6 100644 (file)
@@ -51,7 +51,7 @@
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index e03e2e48ccb5dac6c0b0687be8f556f926d0a91c..a1ac1fdd230b53bb0e2696fa32d2322ce7a16dbd 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile
 set horiz "\[^\n\r\]*"
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 # Now we can proceed with the real testing.
index e4ec42e0dd53220b78f38337e918f33109b1a47d..624422bb7ea2e653970318f8c5add58a51ed2c78 100644 (file)
@@ -28,7 +28,7 @@ standard_testfile
 set linenum [gdb_get_line_number "set break here"]
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 # The test proper.  If COND_BP_TARGET is true, then test with
index 7876e9f763c72d67e062b4531f1efac5f8379725..8ecacba59d5e22f24712cd0f330b60afd78f2ef0 100644 (file)
@@ -32,7 +32,7 @@ if { ![istarget "*-*-linux*"] } {
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 for {set iteration 0} {$iteration < 10} {incr iteration} {
index a3d5cc2f2081abd0bcdc0165f6429094f9081c86..ae700b8715ca5f3af2fe797f7328df9554b9a93f 100644 (file)
@@ -22,7 +22,7 @@
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 0e382af9835b4e7235fd1ea246ea325ffecacdeb..93d242b56f202e516a28d4ebc0be1b5e5dcd7928 100644 (file)
@@ -31,7 +31,7 @@ if {[istarget "*-*-linux"]} {
 }
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index c461df0aa28de7739a8439c09e33deeb45b8bfea..905f47c1243b2e5ba0c0b68d86d597ccbb6c80a6 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable { debug }] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index bbd5e651b7f7b49ead8625b7269062c36c0435b5..e1079f3d1feb6ed8d721f866f11bbe15d66250cf 100644 (file)
@@ -29,7 +29,7 @@ if { [gdb_compile_pthreads \
          "${binfile}" \
          executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $executable
index eeca3f8fd0faa62ff7ffadc908529cf46b83bae0..61a9d5ddef549ccfe5d83b58b518021314a16436 100644 (file)
@@ -28,7 +28,7 @@ standard_testfile
 set NUM 2
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 # Now we can proceed with the real testing.
index 81fc03ef5a526679e0993a0e11ab072fea35b8a2..acf1185cdfc54abe34337e9c3d8c158cf219b8a7 100644 (file)
@@ -20,13 +20,13 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" \
         ${binfile} \
         executable \
         [list debug additional_flags=-lrt]] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # `nostop noprint pass' could in some cases report false PASS due to
index 4eff994fa0980ac99e65372d461763cb3a9f88eb..d5b657bfc3ddb3aecff6d47dccc48efc747cd338 100644 (file)
@@ -24,7 +24,7 @@ require {!target_info exists gdb,nosignals}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable { debug }] != "" } {
-    return -1
+    return
 }
 
 # Run the test proper.  STEP_OVER indicates whether we leave in place
index 983a5e8dc43cf8b6d9164e4e8ffbf513c1756a93..9aeb8597fc9305d8640c19e742d84e8bc30ca694 100644 (file)
@@ -22,7 +22,7 @@ require {!target_info exists gdb,nosignals}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable { debug }] != "" } {
-    return -1
+    return
 }
 
 # Run the test proper.  SCHEDLOCK indicates which variant (around
index 0138cc0036a77b1b27676b597f09f47c87f5f759..745447d3a075920fbb0cddb0a9997ec4ace97c15 100644 (file)
@@ -19,7 +19,7 @@ require {!target_info exists gdb,nosignals}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable { debug }] != "" } {
-    return -1
+    return
 }
 
 # Run test proper.  COMMAND indicates whether to resume the inferior
index c3f5af8905e6955c778f075556da0660cb056d00..55c2ee626d5f24f4ba8bbc7327b5dd87839e06f6 100644 (file)
@@ -22,7 +22,7 @@ require {!target_info exists gdb,nosignals}
 
 if {[build_executable "failed to prepare" $testfile $srcfile \
         {debug pthreads}]} {
-    return -1
+    return
 }
 
 # Run test proper.  SIGTRAP_THREAD is the thread that should get the
index 589da62a15b293904177d82b072ba9636d7faec5..f7bc6cb36b9e3142a930cc0e76c90fbbc1459522 100644 (file)
@@ -29,7 +29,7 @@ require {!target_info exists gdb,nosignals}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable [list debug "incdir=${objdir}"]] != "" } {
-    return -1
+    return
 }
 
 proc get_value {var test} {
@@ -52,7 +52,7 @@ proc get_value {var test} {
 clean_restart $executable
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "set wait-thread-2 breakpoint here"]
index 77f65cf359d6b7f2834397a2bb12773562f2a264..1ad86f01440c3c292292ff6720d8a05af42f5910 100644 (file)
@@ -18,13 +18,13 @@ set executable ${testfile}
 
 if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $executable
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # `noprint' would not test the full logic of GDB.
index 5e6094d9691a3c15e9da934cc627381d97a41919..af5941a41cdd153e77bf8bcdaf8e407ad22538d5 100644 (file)
@@ -21,7 +21,7 @@ require {!target_info exists gdb,nointerrupts}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable { debug }] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index a87e076398eac190fd4c0c1869f065bfbfe1edda..deb3432c9a8ec80ff9214b563107a3600e46f7fb 100644 (file)
@@ -31,7 +31,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index ccd81078ba9c84d5c17b3beebb63d088bc480178..d391239f50188a482d35505cfe2261ad344c2fa5 100644 (file)
@@ -21,7 +21,7 @@ set executable ${testfile}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable [list debug "incdir=${objdir}"]] != "" } {
-    return -1
+    return
 }
 
 # The test proper.  DISPLACED is true if we should try with displaced
index 0a0c5edb97a3b82cb55875ee790b4ed9a65ee67a..877309a9f4ef3086590419b2f7b8bbeea89dcdbd 100644 (file)
@@ -26,7 +26,7 @@ require allow_hw_watchpoint_tests
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable [list debug "incdir=${objdir}"]] != "" } {
-    return -1
+    return
 }
 
 # The test proper.  DISPLACED is true if we should try with displaced
index a63b9b76502b4886ea408c6fe6f001fce73f91d2..64b07ec00bb891d755f7b93ebb00f0683f08c157 100644 (file)
@@ -25,14 +25,14 @@ if { [gdb_compile_pthreads \
          "${binfile}" \
          executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $executable
 
 # Start the second thread.
 if {![runto start]} {
-    return -1
+    return
 }
 
 # Go back to the main thread, and leave it in the loop, where we're
index 895d7ef7bac79a7510c56863a7ae4d7f65645b81..de40a3f1e946ef9c06c2b2208eb010f30da608f5 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare" \
         "${testfile}" "${srcfile}" {debug pthreads}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index bd25b1b49ffbabbd73a6f0fd2d59d30117281fc4..10e40e6843b8ab0c27b52fd37b846f219ca818a9 100644 (file)
@@ -26,7 +26,7 @@
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 037e8288b62f09e3c066a67518e7b6f26a6ed6cd..f7791e0ea90fb6919b86132d6442dbcec6f5d77b 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile \
         {debug pthreads}] == -1} {
-    return -1
+    return
 }
 
 # We need to do things a little differently when using the remote protocol.
@@ -43,7 +43,7 @@ save_vars { GDBFLAGS } {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Check we hace non-stop mode.  We do try to force this on above, but maybe
@@ -51,7 +51,7 @@ if {![runto_main]} {
 # non-stop mode will still show as off, and this test should not be run.
 if {![is_target_non_stop]} {
     unsupported "required non-stop mode"
-    return -1
+    return
 }
 
 delete_breakpoints
index b926664b450861f0e0e423e30e078dcabcbc9000..cd6d6e4f57bff1fdf98cde6184e4fd9061557c36 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable debug] != "" } {
-    return -1
+    return
 }
 
 # Run the test proper.  SCHEDLOCK specifies what scheduler-locking
index acaf99f3c02dbd37675e41de0672d2dcde5ca444..b08e148a081ac9a2b88b0e546c75548085829674 100644 (file)
@@ -18,7 +18,7 @@
 
 standard_testfile linux-dp.c
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != ""} {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 36d2344619a9360b91b7ca4a46f049c66e2f1631..d698b0ce96b1709dd56627aab962586cc721706d 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile
 if {[gdb_compile_pthreads \
         "${srcdir}/${subdir}/${srcfile}" \
         "${binfile}" executable {debug} ] != "" } {
-    return -1
+    return
 }
 
 # Extract and return the thread ID of the thread stopped at function
index 814e870bc89bdd95e8ceaeb0193e69152425153a..79932ab9dc1786ba58727da80e930d116a3695f8 100644 (file)
@@ -21,7 +21,7 @@
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 # Return a list of the valid thread IDs, with the initial thread first.
index d46c3de8c203d1940b8a16dd6a19695f7e00a3d8..d77b323338cc869a13fbb7e363f0b37c76cd2d15 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile interrupted-hand-call.c
 require {!target_info exists gdb,cannot_call_functions}
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS"]] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 1a79e11265026e30700571a62e37c5f0f8a13d62..e48e3d5b3c377121586853fadbb318c5c22aa31a 100644 (file)
@@ -35,7 +35,7 @@
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 
index f7075f82724e16dcf91d089825638a86500688e3..37579bdd395db120447ee1e330614860da9203e5 100644 (file)
@@ -36,7 +36,7 @@ if {[target_info gdb_protocol] == "remote"
 standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 proc gdb_test_thread_start {messages_enabled command pattern message} {
index 73b61056a192bba222248aa28ac202dfda03f657..f8827ae7ea65c253c0ee148ce5c1f114cf2f6309 100644 (file)
@@ -22,7 +22,7 @@
 
 standard_testfile
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 1699449f0ed621df83372d1caab6127353fe2bd2..aa39f6509e9c5cab0ead8dfc0cd0b58ac77b08f1 100644 (file)
@@ -273,7 +273,7 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug pthreads}]} {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index f9064b8a19baa9e5cfff0c96afc05d179ffe5731..79134a0c5428f9ddf95c0ac2836bc5791446c40e 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable debug] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index ce5986986507768ebf5daca26daa793ff76aa12d..57a544f90088f8e2109897864cd2ab67976752a9 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile { debug pthreads }] == -1} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 delete_breakpoints
index e59f22b2454557ad3d4b35f3c059daa607673017..d2e49dbde02b635e22f8e888554e996ce1980479 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
        executable { debug }] != "" } {
-    return -1
+    return
 }
 
 # Generate a native core file.
index cca67f882e1db3b358b1d8fc4b43b45366c80f9c..9d2a805c4a5fe8ab9549c3f0ebfbd190bdebd0fe 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
         {pie}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index cc6573aae6c59d11ee722c941d62ed0029ac6cc8..e02788700d8984fa3755d5a1eac792ac9b40ba3b 100644 (file)
@@ -23,7 +23,7 @@ if {[istarget "*-*-linux"]} {
 }
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable []] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 1b47fe243ee099c3a9a58f0e77dbb7480f0e0d4c..5f705d1750d0cc48c8678315ff808986bcd68cf4 100644 (file)
@@ -46,7 +46,7 @@ set binsharedfile      [standard_output_file ${binsharedbase}]
 if { [build_executable "build library" ${binsharedfile} ${srcsharedfile} \
          {debug shlib additional_flags=-std=c11}] == -1 } {
     untested "Couldn't compile test library"
-    return -1
+    return
 }
 
 # Strip debug information from $binsharedfile, placing it in
@@ -61,7 +61,7 @@ if  { [gdb_compile_pthreads \
        "${binmainfile}" executable [list debug additional_flags=-std=c11]] \
        != "" } {
     untested "Couldn't compile test program"
-    return -1
+    return
 }
 
 set absdir [file dirname [standard_output_file ${binsharedbase}]]
index 768b84a2103ab32e08033dc536bc007d7c27ec44..a293809105d6793377d326d83c6b31aca8f575dc 100644 (file)
@@ -25,7 +25,7 @@ remote_exec build "rm -f ${binfile}"
 
 if { [gdb_compile_shlib_pthreads ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} {debug}] != ""
      || [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable [list debug shlib=${binfile_lib}]] != ""} {
-    return -1
+    return
 }
 
 
index 91205308067b2c03044aa58421c91fcd66a1252f..eb3f32df6210f9478f396cb14c55d09e8525dd52 100644 (file)
@@ -24,7 +24,7 @@ set binfile_lib [standard_output_file ${libfile}.so]
 
 if { [gdb_compile_shlib_pthreads ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} {debug}] != ""
      || [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable [list debug shlib=${binfile_lib}]] != ""} {
-    return -1
+    return
 }
 
 
index fe95df91dbbd0a5d46c7b4c307f4c8853f8f9341..5b2968a7bd01d4839b968ad54fe69a6c65e95b79 100644 (file)
@@ -22,7 +22,7 @@ set executable ${testfile}
 if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${objfile} object {debug}] != ""
      || [gdb_compile ${srcdir}/${subdir}/${srcmainfile} ${objmainfile} object {}] != ""
      || [gdb_compile_pthreads "${objfile} ${objmainfile}" ${binfile} executable {}] != ""} {
-    return -1
+    return
 }
 
 clean_restart ${executable}
index 4a93433e8333e8a60fef80816ce39bd970584743..bf48a6f9fc9edfe9bb4c3271a8d4c603ddf5a086 100644 (file)
@@ -25,7 +25,7 @@ if {[istarget "*-*-linux"]} {
 }
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}" "${binfile}" executable [list c++ debug]] != "" } {
-    return -1
+    return
 }
 
 ### Compute the value of the a_thread_local variable.
index ade63410da9d1a987a2ab902e47a5da6b0476fe2..555bc463bb5b588ac25bc05598f666620770d3a8 100644 (file)
@@ -21,7 +21,7 @@ require allow_fork_tests
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}]} {
-    return -1
+    return
 }
 
 # DETACH indicates whether "set detach-on-fork" is enabled.  It is
index 0f35bd5faa04492b6d8426a24ed6f45abbede0e3..b0e8079cf2dffb7570ec53da82a9115e84cd01eb 100644 (file)
@@ -21,7 +21,7 @@ require allow_fork_tests
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}]} {
-    return -1
+    return
 }
 
 # DETACH indicates whether "set detach-on-fork" is enabled.  It is
index 2686eba08e700add35bb4197e67f51c8d7cd5e8f..e258ec719e91b811d79c3a8d73872aee5a2a1825 100644 (file)
@@ -49,14 +49,14 @@ set opts [list debug additional_flags=-DNR_LOOPS=$nr_loops]
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
        $opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Compile the secondary program, which just sleeps.
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile_sleep}" "${binfile_sleep}" executable \
        {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # We exercise two methods of getting a second inferior to execute while the
index 980ca4d66d0cdeee453c9e28b38c25b5476f205d..58b16be70f26d5adbd9baa257930664a05d0824b 100644 (file)
@@ -32,7 +32,7 @@ if {![istarget *-*-linux*]} {
 
 standard_testfile
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" ${binfile} executable [list debug additional_flags=-lrt]] != "" } {
-    return -1
+    return
 }
 
 foreach reorder {0 1} { with_test_prefix "reorder$reorder" {
index 77a3f7bc5e2ccfd155154099305f09441a6a2657..e975e22e573036065b3c023385ef70dd9b91d3cb 100644 (file)
@@ -28,7 +28,7 @@ proc target_no_stopped_data { } {
 
 standard_testfile
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
-    return -1
+    return
 }
 
 clean_restart $::testfile
index 00229d384c060b394cc993aec60b96cd7368019f..49884f4136dd02b6adf2213d2d063f9c17f1c77c 100644 (file)
@@ -28,7 +28,7 @@ require allow_hw_watchpoint_tests
 
 standard_testfile
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS -DX_INCR_COUNT=$X_INCR_COUNT"]] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
@@ -68,7 +68,7 @@ if { $nr_started == $NR_THREADS } {
 } else {
     fail "all threads started"
     # No point in continuing.
-    return -1
+    return
 }
 
 # Check that multiple uses of the 'thread' keyword will give an error.
index d5f0ff0068c1bfbcfb1fb27c9736d91330c69aa0..28a5071bd5e5d22398a962ecc3f05a9122f51871 100644 (file)
@@ -31,7 +31,7 @@ require allow_hw_watchpoint_tests
 
 standard_testfile
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS -DNR_TRIGGERS_PER_THREAD=$NR_TRIGGERS_PER_THREAD"]] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}