aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-05-31 15:31:15 +0200
committerTom de Vries <tdevries@suse.de>2023-05-31 15:31:15 +0200
commit0b1cae3530601b0e5e16bb10cebafa69c43a3d09 (patch)
tree70f4b0b7909ffaafac306407d0998766339b87e8 /gdb
parent6e9bcaad3fd8f7635afb9fa7013762da2eeff8e5 (diff)
downloadbinutils-0b1cae3530601b0e5e16bb10cebafa69c43a3d09.zip
binutils-0b1cae3530601b0e5e16bb10cebafa69c43a3d09.tar.gz
binutils-0b1cae3530601b0e5e16bb10cebafa69c43a3d09.tar.bz2
[gdb/testsuite] Fix gdb.tui/wrap-line.exp with --disable-tui
When running the test-case gdb.tui/wrap-line.exp with a build configured with --disable-tui, we run into: ... (gdb) PASS: gdb.tui/wrap-line.exp: width-hard-coded: set width 50 tui new-layout command-layout cmd 1^M Undefined command: "tui". Try "help".^M (gdb) ERROR: Undefined command "tui new-layout command-layout cmd 1". ... Fix this by guarding the command with allow_tui_tests. Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.tui/wrap-line.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.tui/wrap-line.exp b/gdb/testsuite/gdb.tui/wrap-line.exp
index 4587517..2f0e4a5 100644
--- a/gdb/testsuite/gdb.tui/wrap-line.exp
+++ b/gdb/testsuite/gdb.tui/wrap-line.exp
@@ -69,8 +69,10 @@ proc test_wrap { wrap_width } {
# Test wrapping in both CLI and TUI.
proc test_wrap_cli_tui { auto_detected_width } {
- # Use a TUI layout with just a command window.
- gdb_test_no_output "tui new-layout command-layout cmd 1"
+ if { [allow_tui_tests] } {
+ # Use a TUI layout with just a command window.
+ gdb_test_no_output "tui new-layout command-layout cmd 1"
+ }
set gdb_width 0
set readline_width 0