public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gdb.tui/main.exp without TUI
@ 2023-04-29  5:00 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-04-29  5:00 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1b05f1083a4e18e5141ddce7551b79d07d9b272d

commit 1b05f1083a4e18e5141ddce7551b79d07d9b272d
Author: Tom de Vries <tdevries@suse.de>
Date:   Sat Apr 29 07:00:34 2023 +0200

    [gdb/testsuite] Fix gdb.tui/main.exp without TUI
    
    With a build with --disable-tui, we get:
    ...
    (gdb) PASS: gdb.tui/main.exp: set interactive-mode off
    maint set tui-left-margin-verbose on^M
    Undefined maintenance set command: "tui-left-margin-verbose on".  \
      Try "help maintenance set".^M
    (gdb) FAIL: gdb.tui/main.exp: maint set tui-left-margin-verbose on
    ...
    
    Fix this by adding the missing "require allow_tui_tests".
    
    Tested on x86_64-linux.

Diff:
---
 gdb/testsuite/gdb.tui/main.exp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/testsuite/gdb.tui/main.exp b/gdb/testsuite/gdb.tui/main.exp
index 9cd3ce8a96d..8664206e30b 100644
--- a/gdb/testsuite/gdb.tui/main.exp
+++ b/gdb/testsuite/gdb.tui/main.exp
@@ -15,6 +15,8 @@
 
 # Test that "file" shows "main".
 
+require allow_tui_tests
+
 tuiterm_env
 
 standard_testfile tui-layout.c

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-29  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-29  5:00 [binutils-gdb] [gdb/testsuite] Fix gdb.tui/main.exp without TUI Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).