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
# 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}]
}