aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 09:36:25 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:31 -0700
commit879ebc530082ac9a90a48c0d02c073b39d98a1cc (patch)
tree62b2a34e8dde6c827baef5ed1592743c456e8094 /gdb/testsuite/gdb.threads
parent9b21b701bb5725071f5304d52a6aadad1f421e9e (diff)
downloadbinutils-879ebc530082ac9a90a48c0d02c073b39d98a1cc.zip
binutils-879ebc530082ac9a90a48c0d02c073b39d98a1cc.tar.gz
binutils-879ebc530082ac9a90a48c0d02c073b39d98a1cc.tar.bz2
Eliminate spurious returns from the test suite
A number of tests end with "return". However, this is unnecessary. This patch removes all of these.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/attach-stopped.exp2
-rw-r--r--gdb/testsuite/gdb.threads/hand-call-in-threads.exp2
-rw-r--r--gdb/testsuite/gdb.threads/interrupted-hand-call.exp2
-rw-r--r--gdb/testsuite/gdb.threads/print-threads.exp2
-rw-r--r--gdb/testsuite/gdb.threads/thread-specific.exp2
-rw-r--r--gdb/testsuite/gdb.threads/thread-unwindonsignal.exp2
-rw-r--r--gdb/testsuite/gdb.threads/threxit-hop-specific.exp2
-rw-r--r--gdb/testsuite/gdb.threads/tls-nodebug.exp2
-rw-r--r--gdb/testsuite/gdb.threads/tls.exp2
9 files changed, 0 insertions, 18 deletions
diff --git a/gdb/testsuite/gdb.threads/attach-stopped.exp b/gdb/testsuite/gdb.threads/attach-stopped.exp
index 25d63b3..a3080c0 100644
--- a/gdb/testsuite/gdb.threads/attach-stopped.exp
+++ b/gdb/testsuite/gdb.threads/attach-stopped.exp
@@ -96,5 +96,3 @@ if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" execut
}
corefunc threaded
-
-return 0
diff --git a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp
index 1309ef8..33619911 100644
--- a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp
+++ b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp
@@ -159,5 +159,3 @@ gdb_test "show scheduler-locking" ".* locking scheduler .* is \"off\"." "show sc
#gdb_test "thread 1" ".*" "set thread to 1, prepare to resume"
#
#gdb_continue_to_end "hand-call-in-threads"
-
-return 0
diff --git a/gdb/testsuite/gdb.threads/interrupted-hand-call.exp b/gdb/testsuite/gdb.threads/interrupted-hand-call.exp
index 478e297..ed1ea9f 100644
--- a/gdb/testsuite/gdb.threads/interrupted-hand-call.exp
+++ b/gdb/testsuite/gdb.threads/interrupted-hand-call.exp
@@ -76,5 +76,3 @@ gdb_test_multiple "maint print dummy-frames" "dummy frame popped" {
# Continue one last time, the program should exit normally.
gdb_continue_to_end "" continue 1
-
-return 0
diff --git a/gdb/testsuite/gdb.threads/print-threads.exp b/gdb/testsuite/gdb.threads/print-threads.exp
index 49a0535..c091302 100644
--- a/gdb/testsuite/gdb.threads/print-threads.exp
+++ b/gdb/testsuite/gdb.threads/print-threads.exp
@@ -108,5 +108,3 @@ gdb_breakpoint "kill"
set timeout [expr $oldtimeout + 120]
test_all_threads "slow with kill breakpoint" 1
set timeout $oldtimeout
-
-return 0
diff --git a/gdb/testsuite/gdb.threads/thread-specific.exp b/gdb/testsuite/gdb.threads/thread-specific.exp
index 3c3055e..9ba98ec 100644
--- a/gdb/testsuite/gdb.threads/thread-specific.exp
+++ b/gdb/testsuite/gdb.threads/thread-specific.exp
@@ -128,5 +128,3 @@ if { $this_thread != -1 } {
} else {
untested "thread var at break"
}
-
-return 0
diff --git a/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp b/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
index 0b08723..b3e3288 100644
--- a/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
+++ b/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
@@ -100,5 +100,3 @@ gdb_test_multiple "maint print dummy-frames" "dummy frame popped" {
# Continue one last time, the program should exit normally.
gdb_continue_to_end "" continue 1
-
-return 0
diff --git a/gdb/testsuite/gdb.threads/threxit-hop-specific.exp b/gdb/testsuite/gdb.threads/threxit-hop-specific.exp
index 0b7bd25..24055db 100644
--- a/gdb/testsuite/gdb.threads/threxit-hop-specific.exp
+++ b/gdb/testsuite/gdb.threads/threxit-hop-specific.exp
@@ -47,5 +47,3 @@ gdb_breakpoint "$bpexitline"
gdb_test "continue" \
".*set exit breakpoint here.*" \
"get past the thread specific breakpoint"
-
-return 0
diff --git a/gdb/testsuite/gdb.threads/tls-nodebug.exp b/gdb/testsuite/gdb.threads/tls-nodebug.exp
index 3dcf5f4..41a2f27 100644
--- a/gdb/testsuite/gdb.threads/tls-nodebug.exp
+++ b/gdb/testsuite/gdb.threads/tls-nodebug.exp
@@ -40,5 +40,3 @@ gdb_test "p (int) thread_local" "= 42" \
# Done!
#
gdb_exit
-
-return 0
diff --git a/gdb/testsuite/gdb.threads/tls.exp b/gdb/testsuite/gdb.threads/tls.exp
index 99e9951..89f6fb8 100644
--- a/gdb/testsuite/gdb.threads/tls.exp
+++ b/gdb/testsuite/gdb.threads/tls.exp
@@ -321,5 +321,3 @@ gdb_test "info address a_thread_local" "Symbol \"a_thread_local\" is a thread-lo
# Done!
#
gdb_exit
-
-return 0