Add $gdb_prompt to test regexp.
authorAndrew Burgess <aburgess@broadcom.com>
Mon, 8 Jul 2013 11:16:01 +0000 (11:16 +0000)
committerAndrew Burgess <aburgess@broadcom.com>
Mon, 8 Jul 2013 11:16:01 +0000 (11:16 +0000)
http://sourceware.org/ml/gdb-patches/2013-07/msg00173.html

* gdb.python/py-explore.exp: Add $gdb_prompt to test regexp.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-explore.exp

index d53c81c0f5af1d77caeb2b4373b3a1dda8f37138..8db26137a7694f02d97c31470f1ff431ddee415b 100644 (file)
@@ -1,3 +1,7 @@
+2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
+
+       * gdb.python/py-explore.exp: Add $gdb_prompt to test regexp.
+
 2013-07-07  Yao Qi  <yao@codesourcery.com>
 
        * boards/native-gdbserver.exp: Move invoke of
index 1f4879f1ed88bee2555a2a312692ce1dd6bcf2b3..9e515314164f3ca0cc379c29962c492fcf88becf 100644 (file)
@@ -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"
                                             }
                                         }