Fix Python help() test for Python 3
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 1 Dec 2014 13:08:06 +0000 (08:08 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 1 Dec 2014 13:08:06 +0000 (08:08 -0500)
The message displayed when using help() changed a bit with time, so this
adjusts the test accordingly.

gdb/testsuite/ChangeLog:

* gdb.python/python.exp: Change expected reply to help().

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/python.exp

index 4033e6228f9c6433c88c1c9db41f94052a3531b3..6d214eef035a807024534235f5d601e06ddc1e3a 100644 (file)
@@ -1,3 +1,7 @@
+2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * gdb.python/python.exp: Change expected reply to help().
+
 2014-12-01  Yao Qi  <yao@codesourcery.com>
 
        * configure.ac: Remove AC_ARG_ENABLE for gdbtk.  Don't invoke
index 787a2944f89dee00088f31be86b44884f85a4dff..dcbc35c01664ceeb6f8b176a4a3e091034122584 100644 (file)
@@ -67,7 +67,7 @@ gdb_py_test_multiple "multi-line python command" \
 with_test_prefix "python interactive help" {
     set test "python; help(); end"
     gdb_test_multiple "python\nhelp()\nend" $test {
-       -re "online help utility.*help> $" {
+       -re ".*help utility.*help> $" {
            pass $test
 
            # The "quit" must be seen on the output.  A buggy GDB
This page took 0.033931 seconds and 4 git commands to generate.