summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2004-02-09 22:45:35 +0000
committerDaniel Jacobowitz <dan@debian.org>2004-02-09 22:45:35 +0000
commitb0836f78765c345597d18c94bdb887592bf53276 (patch)
treea3d2bd650342e077d39b7ce23494a1f8c2919e39
parentff903e87645648d849717ce4d746469d0e0d50ad (diff)
downloadgdb-b0836f78765c345597d18c94bdb887592bf53276.tar.gz
* gdb.threads/thread-specific.exp: Stop early if no threads are
found.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/thread-specific.exp5
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 08abd625056..93287a53c72 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-09 Daniel Jacobowitz <drow@mvista.com>
+
+ * gdb.threads/thread-specific.exp: Stop early if no threads are
+ found.
+
2004-02-09 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/pending.exp: Remove extra \n from gdb_test calls.
diff --git a/gdb/testsuite/gdb.threads/thread-specific.exp b/gdb/testsuite/gdb.threads/thread-specific.exp
index ffcaaad1762..66f0bd2261c 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 $" {