diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2014-12-01 08:08:06 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2014-12-01 08:08:06 -0500 |
commit | 55cfb2c4c8accd5031fd7c8167988fc4624e847c (patch) | |
tree | 8983c4e61de18b4851c18a72456b54212a4fb764 | |
parent | ac3d87c0d256547c036067de7bceee320b9bab8f (diff) | |
download | gdb-55cfb2c4c8accd5031fd7c8167988fc4624e847c.zip gdb-55cfb2c4c8accd5031fd7c8167988fc4624e847c.tar.gz gdb-55cfb2c4c8accd5031fd7c8167988fc4624e847c.tar.bz2 |
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().
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/python.exp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4033e62..6d214ee 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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 diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 787a294..dcbc35c 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 |