This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


gdb/testsuite:

2012-03-16  Yao Qi  <yao@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]