From: Simon Marchi Date: Mon, 1 Dec 2014 13:08:06 +0000 (-0500) Subject: Fix Python help() test for Python 3 X-Git-Tag: hjl/linux/release/2.25.51.0.1~3^2~24^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55cfb2c4c8accd5031fd7c8167988fc4624e847c;p=thirdparty%2Fbinutils-gdb.git Fix Python help() test for Python 3 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(). --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4033e6228f9..6d214eef035 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-12-01 Simon Marchi + + * gdb.python/python.exp: Change expected reply to help(). + 2014-12-01 Yao Qi * configure.ac: Remove AC_ARG_ENABLE for gdbtk. Don't invoke diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 787a2944f89..dcbc35c0166 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -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