diff options
author | Siva Chandra Reddy <sivachandra@sourceware.org> | 2013-01-21 21:44:57 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@sourceware.org> | 2013-01-21 21:44:57 +0000 |
commit | aa6199c69abb6e2cb00dff0d79985c8548db4b1c (patch) | |
tree | 59544bbac72fabe40de595bb34e5abfecad968d5 /gdb/testsuite | |
parent | d2afef13c283c7ea0f551ddfe966651b63ad6700 (diff) | |
download | gdb-aa6199c69abb6e2cb00dff0d79985c8548db4b1c.zip gdb-aa6199c69abb6e2cb00dff0d79985c8548db4b1c.tar.gz gdb-aa6199c69abb6e2cb00dff0d79985c8548db4b1c.tar.bz2 |
* python/lib/gdb/commands/explore.py
(CompoundExplorer.explore_expr): Correct the name of a method
being invoked.
(ExploreTypeCommand.invoke): Add a missing 'return'.
* testsuite/gdb.python/py-explore.exp: Improve a test
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-explore.exp | 20 |
2 files changed, 19 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8b6562b..ff27d23 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2013-01-21 Siva Chandra Reddy <sivachandra@google.com> + + * gdb.python/py-explore.exp: Improve a test + 2013-01-18 David Blaikie <dblaikie@gmail.com> * gdb.base/label.c (main): Correct the type of the second diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp index 0fb67d3..34333b5 100644 --- a/gdb/testsuite/gdb.python/py-explore.exp +++ b/gdb/testsuite/gdb.python/py-explore.exp @@ -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" + } + } } } |