summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/watch_thread_num.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/watch_thread_num.exp')
-rw-r--r--gdb/testsuite/gdb.base/watch_thread_num.exp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/watch_thread_num.exp b/gdb/testsuite/gdb.base/watch_thread_num.exp
index b4f0f3b110b..e551a1ed893 100644
--- a/gdb/testsuite/gdb.base/watch_thread_num.exp
+++ b/gdb/testsuite/gdb.base/watch_thread_num.exp
@@ -62,11 +62,10 @@ gdb_test "break thread_function" "Breakpoint \[0-9\].*" \
gdb_test "continue" ".*Breakpoint 2.*" "Stopped in thread_function"
-send_gdb "thread\n"
-gdb_expect {
- -re ".*Current thread is (\[0-9\]*).*$gdb_prompt $" { pass "Thread command" }
- -re ".*$gdb_prompt $" { fail "Thread command" }
- timeout { fail "(timeout) Thread command" }
+gdb_test_multiple "thread" "Thread command" {
+ -re ".*Current thread is (\[0-9\]*).*$gdb_prompt $" {
+ pass "Thread command"
+ }
}
set thread_num "$expect_out(1,string)"