public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/30400] New: [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout)
@ 2023-04-28  7:46 vries at gcc dot gnu.org
  2023-04-29  4:42 ` [Bug testsuite/30400] " vries at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-04-28  7:46 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30400

            Bug ID: 30400
           Summary: [gdb/testsuite] FAIL: gdb.base/readline.exp: set width
                    7 (timeout)
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

For a testsuite run with a build without tui and ncurses and system readline, I
run into:
...
FAIL: gdb.base/readline.exp: set width 7 (timeout)
FAIL: gdb.base/readline.exp: send long command to GDB (timeout)
FAIL: gdb.base/readline.exp: All the characters transferred (timeout)
...

First fail in more detail:
...
(gdb) set width 7^M
<b) FAIL: gdb.base/readline.exp: set width 7 (timeout)
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug testsuite/30400] [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout)
  2023-04-28  7:46 [Bug testsuite/30400] New: [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout) vries at gcc dot gnu.org
@ 2023-04-29  4:42 ` vries at gcc dot gnu.org
  2023-04-29  7:41 ` vries at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-04-29  4:42 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30400

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
I did another build, with ncuses and tui and without system readline.

FAIL does not reproduce.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug testsuite/30400] [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout)
  2023-04-28  7:46 [Bug testsuite/30400] New: [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout) vries at gcc dot gnu.org
  2023-04-29  4:42 ` [Bug testsuite/30400] " vries at gcc dot gnu.org
@ 2023-04-29  7:41 ` vries at gcc dot gnu.org
  2023-04-29  8:47 ` cvs-commit at gcc dot gnu.org
  2023-04-29  8:48 ` vries at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-04-29  7:41 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30400

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
In configure.ac we have:
...
# These are the libraries checked by Readline.                                  
AC_SEARCH_LIBS(tgetent, [termcap tinfow tinfo curses ncursesw ncurses])
...

I didn't have termcap installed (which supplies termcap and curses).

AFAICT, ncurses supplies tinfow, tinfo, ncursesw, and ncurses.

So after deinstalling that, no library is found.

So, I guess this is the behaviour we get when using stub-termcap.o:
...
if test "$ac_cv_search_tgetent" = no; then
  CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
fi
...

In rl_redisplay we hit this code:
...
  /* If we can move the cursor up and down, then use multiple lines,            
     otherwise, let long lines display in a single terminal line, and           
     horizontally scroll it. */
  displaying_prompt_first_line = 1;
  if (_rl_horizontal_scroll_mode == 0 && _rl_term_up && *_rl_term_up)
    ...
  else                          /* Do horizontal scrolling. Much simpler */
...
and do horizontal scrolling, even though _rl_horizontal_scroll_mode == 0,
because _rl_term_up == nullptr.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug testsuite/30400] [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout)
  2023-04-28  7:46 [Bug testsuite/30400] New: [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout) vries at gcc dot gnu.org
  2023-04-29  4:42 ` [Bug testsuite/30400] " vries at gcc dot gnu.org
  2023-04-29  7:41 ` vries at gcc dot gnu.org
@ 2023-04-29  8:47 ` cvs-commit at gcc dot gnu.org
  2023-04-29  8:48 ` vries at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-29  8:47 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30400

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:

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

commit 8f29f8e1aef7e66ee73ba21857bd62cd66271307
Author: Tom de Vries <tdevries@suse.de>
Date:   Sat Apr 29 10:47:46 2023 +0200

    [gdb/testsuite] Fix gdb.base/readline.exp with stub-termcap

    When doing a build which uses stub-termcap, we run into:
    ...
    (gdb) set width 7
    <b) FAIL: gdb.base/readline.exp: set width 7 (timeout)
    ...

    Since readline can't detect very basic terminal support, it falls back on
    horizontal scrolling.

    Fix this by detecting the horizontal scrolling case, and skipping the
    subsequent test.

    Tested on x86_64-linux.

    PR testsuite/30400
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30400

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug testsuite/30400] [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout)
  2023-04-28  7:46 [Bug testsuite/30400] New: [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout) vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-04-29  8:47 ` cvs-commit at gcc dot gnu.org
@ 2023-04-29  8:48 ` vries at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-04-29  8:48 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30400

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |14.1
             Status|NEW                         |RESOLVED

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed by commit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-29  8:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-28  7:46 [Bug testsuite/30400] New: [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout) vries at gcc dot gnu.org
2023-04-29  4:42 ` [Bug testsuite/30400] " vries at gcc dot gnu.org
2023-04-29  7:41 ` vries at gcc dot gnu.org
2023-04-29  8:47 ` cvs-commit at gcc dot gnu.org
2023-04-29  8:48 ` vries at gcc dot gnu.org

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).