]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Declare TUI tests unsupported on msys2-ucrt64
authorTom de Vries <tdevries@suse.de>
Fri, 26 Sep 2025 23:20:56 +0000 (01:20 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 26 Sep 2025 23:20:56 +0000 (01:20 +0200)
I tried to run the TUI tests on msys2-ucrt64, and ran into:
...
(gdb) tui enable^M
Cannot enable the TUI when output is not a terminal^M
(gdb)
...

The TUI works fine in an msys2-ucrt64 terminal, it's just the testsuite setup
that doesn't work.

Fix this by bailing out for istarget *-*-mingw* in allow_tui_tests.

Tested on x86_64-linux and msys2-ucrt64.

Approved-By: Tom Tromey <tom@tromey.com>
PR testsuite/33362
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33362

gdb/testsuite/lib/gdb.exp

index f05e1c84d5b37dcb1de89a668683ca7977db4d85..94978504a5b8fe45216c0a964c179649b935c2d9 100644 (file)
@@ -3122,6 +3122,10 @@ gdb_caching_proc allow_dlmopen_tests {} {
 # Return 1 if we should allow TUI-related tests.
 
 gdb_caching_proc allow_tui_tests {} {
+    if { [istarget *-*-mingw*] } {
+       # Avoid "Cannot enable the TUI when output is not a terminal".
+       return 0
+    }
     set output [remote_exec host $::GDB "$::INTERNAL_GDBFLAGS --configuration"]
     return [expr {[string first "--enable-tui" $output] != -1}]
 }