[PATCH 10/14] watchthreads-reorder.exp: Don't assume there is no infrun output after prompt.

Yao Qi
2012-05-03T13:13:21Z

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