diff options
author | Doug Evans <xdje42@gmail.com> | 2013-11-23 15:54:05 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2013-11-23 15:54:05 -0800 |
commit | 3cd14e4575a40c8b9d2c009de38b5f1de6370d51 (patch) | |
tree | c1bbfd58b7c60ab0f0ea017cf785c04ab75aae48 /gdb/testsuite | |
parent | 985c818c2d77d70379d7b866eae73e0baa079d1b (diff) | |
download | gdb-3cd14e4575a40c8b9d2c009de38b5f1de6370d51.zip gdb-3cd14e4575a40c8b9d2c009de38b5f1de6370d51.tar.gz gdb-3cd14e4575a40c8b9d2c009de38b5f1de6370d51.tar.bz2 |
* gdb.python/py-type.exp (test_enums): Fix typo.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-type.exp | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 24bcfc6..e77570c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2013-11-23 Doug Evans <xdje42@gmail.com> + * gdb.python/py-type.exp (test_enums): Fix typo. + +2013-11-23 Doug Evans <xdje42@gmail.com> + * gdb.python/py-symbol.exp: Add some comments. Make all test names unique. diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp index f6b1d96..7fdea3a 100644 --- a/gdb/testsuite/gdb.python/py-type.exp +++ b/gdb/testsuite/gdb.python/py-type.exp @@ -154,11 +154,12 @@ proc test_enums {} { # Ditto but by mapping operations gdb_test "python print (len(e.type))" "3" "Check the number of type fields" gdb_test "python print (e.type\['v1'\].name)" "v1" "Check enum field lookup by name (v1)" - gdb_test "python print (e.type\['v3'\].name)" "v3" "Check enum field lookup by name (v2)" + gdb_test "python print (e.type\['v3'\].name)" "v3" "Check enum field lookup by name (v3)" gdb_test "python print (\[v.enumval for v in e.type.itervalues()\])" {\[0L?, 1L?, 2L?\]} "Check num fields iteration over values" gdb_test "python print (\[(n, v.enumval) for (n, v) in e.type.items()\])" {\[\('v1', 0L?\), \('v2', 1L?\), \('v3', 2L?\)\]} "Check enum fields items list" } } + proc test_base_class {} { with_test_prefix "test_base_class" { gdb_py_test_silent_cmd "print (d)" "print value (d)" 1 |