This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] [OBV] Look for gdb_prompt in py-explore.exp
- From: "Andrew Burgess" <aburgess at broadcom dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 4 Jul 2013 16:32:30 +0100
- Subject: [PATCH] [OBV] Look for gdb_prompt in py-explore.exp
Had a random test failure that I believe was caused by a
failure to look for $gdb_prompt in the regexp of the
preceding test.
I think the following is obvious so I'll commit in a couple
of days unless someone objects.
Cheers,
Andrew
gdb/testsuite/ChangeLog
2013-07-04 Andrew Burgess <aburgess@broadcom.com>
* gdb.python/py-explore.exp: Add $gdb_prompt to test regexp.
diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp
index 1f4879f..9e51531 100644
--- a/gdb/testsuite/gdb.python/py-explore.exp
+++ b/gdb/testsuite/gdb.python/py-explore.exp
@@ -119,7 +119,7 @@ gdb_test_multiple "explore darray_ref" "" {
-re ".*Returning to parent value.*Enter the index of the element you want to explore in 'darray_ref':.*" {
pass "end explore_as_array_index_2"
gdb_test_multiple "\0" "end explore_as_array" {
- -re "\[\n\r\]+" {
+ -re "\[\n\r\]+$gdb_prompt" {
pass "end explore_as_array"
}
}