aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-02-09 13:39:32 -0700
committerTom Tromey <tom@tromey.com>2017-02-10 12:24:35 -0700
commitb964bee0f058b8e63c9206a8862b2fc1253f1bbd (patch)
tree325f2d411783ec4b6c95e614218c1e2a5f5f82c7 /gdb
parent2d8365c48f797c7b947623eed8b1285d98323b68 (diff)
downloadgdb-b964bee0f058b8e63c9206a8862b2fc1253f1bbd.zip
gdb-b964bee0f058b8e63c9206a8862b2fc1253f1bbd.tar.gz
gdb-b964bee0f058b8e63c9206a8862b2fc1253f1bbd.tar.bz2
Fix Python test to use lowercase command
While testing this series I saw some errors from the Python test suite. There were a couple of tests using "P" as a command; this changes them to "p". gdb/testsuite/ChangeLog 2017-02-10 Tom Tromey <tom@tromey.com> * gdb.python/py-xmethods.exp: Use "p" command, not "P".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-xmethods.exp4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index ed0d374..105575e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2017-02-10 Tom Tromey <tom@tromey.com>
+
+ * gdb.python/py-xmethods.exp: Use "p" command, not "P".
+
2017-02-10 Martin Galvan <martingalvan@sourceware.org>
PR gdb/21122
diff --git a/gdb/testsuite/gdb.python/py-xmethods.exp b/gdb/testsuite/gdb.python/py-xmethods.exp
index dcd7191..6f8e023 100644
--- a/gdb/testsuite/gdb.python/py-xmethods.exp
+++ b/gdb/testsuite/gdb.python/py-xmethods.exp
@@ -106,8 +106,8 @@ gdb_test "p a1.geta()" "From Python <A_geta>.*5" "after: a1.geta()"
gdb_test "p ++a1" "From Python <plus_plus_A>.*6" "after: ++a1"
gdb_test "p a1.getarrayind(5)" "From Python <A_getarrayind>.*5" \
"after: a1.getarrayind(5)"
-gdb_test "P a1\[6\]" ".*int &.*6" "after a1\[\]"
-gdb_test "P b1\[7\]" ".*const int &.*7" "after b1\[\]"
+gdb_test "p a1\[6\]" ".*int &.*6" "after a1\[\]"
+gdb_test "p b1\[7\]" ".*const int &.*7" "after b1\[\]"
# Note the following test. Xmethods on dynamc types are not looked up
# currently. Hence, even though a_ptr points to a B object, the xmethod
# defined for A objects is invoked.