From 55cfb2c4c8accd5031fd7c8167988fc4624e847c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 1 Dec 2014 08:08:06 -0500 Subject: [PATCH] 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(). --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.python/python.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2