]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Improve gdb.python/remove-readline-finder.exp master
authorTom de Vries <tdevries@suse.de>
Wed, 5 Aug 2026 13:08:03 +0000 (15:08 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 5 Aug 2026 13:08:03 +0000 (15:08 +0200)
commitb7da195b94b423e5cfd27a14c636ffe9f7380cdd
tree14dd8cbc008e32158c65afda3f3b516ae0ae7527
parentcd4e3876afb11e07fb7f3ccc10a87e3b990074eb
[gdb/testsuite] Improve gdb.python/remove-readline-finder.exp

I came across test-case gdb.python/remove-readline-finder.exp.

It checks that a "python import readline" command fails.

Extend the test-case with also checking that the readline module is not
present in the sys.modules dict.

While we're at it, modernize a regexp using multi_line.

Tested on x86_64-linux (using make-check-all.sh) and aarch64-linux.
gdb/testsuite/gdb.python/remove-readline-finder.exp