]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix Python test to use lowercase command
authorTom Tromey <tom@tromey.com>
Thu, 9 Feb 2017 20:39:32 +0000 (13:39 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 10 Feb 2017 19:24:35 +0000 (12:24 -0700)
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".

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

index ed0d374339c5b38af4e27324266d186fe93cdbee..105575e7649b7a79dab48fd9da1ca19a436588b4 100644 (file)
@@ -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
index dcd7191283f9dbbb25b863abc7d647cf4d8f6e8e..6f8e0238aa4b9f8b1553eca4a1fd0668524e4ba7 100644 (file)
@@ -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.