Re: [PATCH] [gdb/testsuite] Fix gdb.python/py-mi-cmd.exp

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gdb.patches
Message-ID <[email protected]>
>>>>> "Tom" == Tom de Vries <[email protected]> writes:

Tom> On Fedora Rawhide aarch64-linux (using Python 3.15.0b4), with test-case
Tom> gdb.python/py-mi-cmd.exp I ran into:
Tom> ...
Tom> Expecting: ^(-pycmd bk3[^M
Tom> ]+)?(&"TypeError.*: __repr__ returned non-string \(type BadKey\).."^M
Tom> \^error,msg="Error occurred in Python: __repr__ returned non-string \(type BadKey\)"[^M
Tom> ]+[(]gdb[)] ^M
Tom> [ ]*)
Tom> -pycmd bk3^M
Tom> &"TypeError: ReallyBadKey.__repr__() must return a str, not BadKey\n"^M
Tom> ^error,msg="Error occurred in Python: ReallyBadKey.__repr__() must return a str, not BadKey"^M
Tom> (gdb) ^M
Tom> FAIL: $exp: -pycmd bk3 (unexpected output)
Tom> ...

Tom> Fix this by updating the regexp.

Looks fine to me, thanks.
Approved-By: Tom Tromey <[email protected]>

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.