Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1475)

Unified Diff: gdb/testsuite/gdb.python/py-explore.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.python/py-explore.cc ('k') | gdb/testsuite/gdb.python/py-explore-cc.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.python/py-explore.exp
diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp
index 308d90223aea64c1b6b43d775ce2526157dd02da..9e515314164f3ca0cc379c29962c492fcf88becf 100644
--- a/gdb/testsuite/gdb.python/py-explore.exp
+++ b/gdb/testsuite/gdb.python/py-explore.exp
@@ -1,4 +1,4 @@
-# Copyright 2012 Free Software Foundation, Inc.
+# Copyright 2012-2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -96,7 +96,7 @@ gdb_test_multiple "explore ss_ptr" "" {
-re "[pointer_description {ss_ptr} $SS].*" {
pass "explore ss_ptr"
gdb_test_multiple "y" "explore_as_single_value_pointer" {
- -re "$SS_fields" {
+ -re "$SS_fields.*$gdb_prompt" {
pass "explore ss_ptr as single value pointer"
}
}
@@ -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"
}
}
@@ -164,15 +164,25 @@ gdb_test_multiple "explore cs" "" {
gdb_test_multiple " " "end cs.s exploration" {
-re ".*$enter_field_number_prompt" {
pass "end cs.s exploration"
- gdb_test_multiple "\0" "end cs exploration" {
- -re "$gdb_prompt" {
- pass "end cs exploration"
- }
- }
}
}
}
}
+ gdb_test_multiple "1" "explore cs.u" {
+ -re "[compound_description {cs.u} {union} {union SimpleUnion}].*.*[field_choices {i} {c} {f} {d}].*$enter_field_number_prompt" {
+ pass "explore cs.u"
+ gdb_test_multiple " " "end cs.u exploration" {
+ -re ".*$enter_field_number_prompt" {
+ pass "end cs.u exploration"
+ }
+ }
+ }
+ }
+ gdb_test_multiple "\0" "explore cs.u" {
+ -re "$gdb_prompt" {
+ pass "end cs exploration"
+ }
+ }
}
}
« no previous file with comments | « gdb/testsuite/gdb.python/py-explore.cc ('k') | gdb/testsuite/gdb.python/py-explore-cc.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698