aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-02-09 22:45:35 +0000
committerDaniel Jacobowitz <drow@false.org>2004-02-09 22:45:35 +0000
commit9cf689d7c72646cc23d60fd81e8f593876913488 (patch)
tree0b12f174974c0712a9ce8f611fb4f0f7b7094a50 /gdb/testsuite/gdb.threads
parent17763fd99bc523178a7a90d7fd20b227b76375b5 (diff)
downloadgdb-9cf689d7c72646cc23d60fd81e8f593876913488.zip
gdb-9cf689d7c72646cc23d60fd81e8f593876913488.tar.gz
gdb-9cf689d7c72646cc23d60fd81e8f593876913488.tar.bz2
* gdb.threads/thread-specific.exp: Stop early if no threads are
found.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/thread-specific.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/thread-specific.exp b/gdb/testsuite/gdb.threads/thread-specific.exp
index ffcaaad..66f0bd2 100644
--- a/gdb/testsuite/gdb.threads/thread-specific.exp
+++ b/gdb/testsuite/gdb.threads/thread-specific.exp
@@ -86,6 +86,11 @@ gdb_continue_to_breakpoint "all threads started"
set line [gdb_get_line_number "thread-specific.exp: thread loop"]
set threads [get_thread_list]
+if {[llength $threads] == 0} {
+ # We have already issued a FAIL above.
+ return 1
+}
+
gdb_test_multiple "break $line thread [lindex $threads 0]" \
"breakpoint $line main thread" {
-re "Breakpoint (\[0-9\]*) at.* file .*$srcfile, line.*$gdb_prompt $" {