]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix gdb.server/non-existing-program.exp on msys2-ucrt64
authorTom de Vries <tdevries@suse.de>
Wed, 27 Aug 2025 08:49:19 +0000 (10:49 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 27 Aug 2025 08:49:19 +0000 (10:49 +0200)
commit23cdb9da3b64a1b396e6053d0b13f9da9abfb44c
treefca5f620fb9203b062da766474ec3975d5368c56
parent793534c26924c986069b03ab1bd6659aead5065b
[gdb/testsuite] Fix gdb.server/non-existing-program.exp on msys2-ucrt64

On msys2-ucrt64, with test-case gdb.server/non-existing-program.exp I get:
...
(gdb) quit^M
gdb_caching_proc allow_xml_test caused gdb_exit to be called
  gdb_caching_proc allow_xml_test marked as called
  gdb_caching_proc get_mount_point_map marked as called
builtin_spawn gdbserver stdio non-existing-program^M
Error creating process "non-existing-program " (error 2): \
  The system cannot find the file specified.^M^M
Exiting^M^M
FAIL: gdb.server/non-existing-program.exp: gdbserver exits cleanly
...

This happens because this regexp fails to match:
...
    # This is what we get on Windows.
    -re "Error creating process\r\n\r\nExiting\r\n" {
...

Fix this by updating the regexp.

Tested on x86_64-w64-mingw32 (msys2-ucrt64).
gdb/testsuite/gdb.server/non-existing-program.exp