]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Require allow_tui_tests in gdb.tui/tui-missing-src.exp
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)
When running test-case gdb.tui/tui-missing-src.exp on msys2-ucrt64, I run into
an error due to some filename mismatch.

I could try to fix this, but a bit later the test-case would bail out at
Term::enter_tui because allow_tui_tests returns 0.

Instead, fix this by adding an early require of allow_tui_tests.

Tested on x86_64-linux and msys2-ucrt64.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.tui/tui-missing-src.exp

index aca417c3cd8faf68bc137db241e73e7bdd54afee..ae98775e7781f61090fce69933128190a7936f4a 100644 (file)
@@ -27,6 +27,7 @@
 
 # Check if start command is supported.
 require !use_gdb_stub
+require allow_tui_tests
 
 tuiterm_env