]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix TUI tests on freebsd
authorTom de Vries <tdevries@suse.de>
Sat, 16 Aug 2025 18:32:37 +0000 (20:32 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 16 Aug 2025 18:32:37 +0000 (20:32 +0200)
commite579b537353cd91cb8fac1eaeb69901d4936766f
treef8d26e1c28741fd495f65b1431551a0f9df21a04
parent06a53717f7c5abfd87165f3e5c7f55f9a8f512a7
[gdb/testsuite] Fix TUI tests on freebsd

While re-testing the TUI tests on x86_64-freebsd, I found that commit
06a53717f7c ("[gdb/testsuite] Handle unrecognized escape sequences better in
tuiterm") broke most test-cases.

Fix this by rewriting this gdb_test_multiple clause:
...
  -re "^($re_csi_prefix?)($re_csi_args*)($re_csi_cmd)" {
...
into:
...
-re "^($re_csi_cmd)" {
  ...
-re "^($re_csi_args*)($re_csi_cmd)" {
  ...
  -re "^($re_csi_prefix?)($re_csi_args*)($re_csi_cmd)" {
...

Tested on x86_64-linux and x86_64-freebsd.
gdb/testsuite/lib/tuiterm.exp