This is the mail archive of the 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] [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.



2013-07-04  Andrew Burgess  <>

	* 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"

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