This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 10/14] watchthreads-reorder.exp: Don't assume there is no infrun output after prompt.
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Thu, 3 May 2012 21:14:25 +0800
- Subject: [PATCH 10/14] watchthreads-reorder.exp: Don't assume there is no infrun output after prompt.
- References: <1336050869-29605-1-git-send-email-yao@codesourcery.com>
Copied from this,
[RFC/WIP PATCH v2 05/14] watchthreads-reorder.exp: Don't assume there's no infrun output after the prompt
http://sourceware.org/ml/gdb-patches/2011-12/msg00565.html
gdb/testsuite:
2011-12-16 Pedro Alves <pedro@codesourcery.com>
* gdb.threads/watchthreads-reorder.exp: Don't assume there's no infrun
output after the prompt.
---
gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
index 5197983..a9464a4 100644
--- a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
@@ -92,5 +92,17 @@ foreach reorder {0 1} { with_test_prefix "reorder$reorder" {
# found in the DEBUG_INFRUN code path.
gdb_test "set debug infrun 1"
- gdb_continue_to_breakpoint "break-at-exit" ".*break-at-exit.*"
+ set test "break-at-exit"
+ send_gdb "continue\n"
+ gdb_expect {
+ -re "Breakpoint .* (at|in) .* break-at-exit .*\r\n$gdb_prompt " {
+ pass $test
+ }
+ -re ".*$gdb_prompt $" {
+ fail $test
+ }
+ timeout {
+ fail "$test (timeout)"
+ }
+ }
}}
--
1.7.0.4