From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 60AB23858C50; Sat, 29 Apr 2023 07:41:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60AB23858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682754093; bh=jQEQPCdSeqYB+FpEIcwEAJwqhRhA5XEnM7GNwsvh4Ss=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PfMcuDRnwylfNhIpacJxU0CIiqIGx/9Dw3tYH6Q7QGY/Q8HeeXDu4nA0dg9fCxBwk FWuFF/TxWxHNYj+mOSZsiwxhD4OMmWjZIrQjjQrXz5lFOJKBRuuryEnsgXC94VQeSn uFAZ5uihSBFF7+foqRgj69EOtduIMycDa2bp/jDQ= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/30400] [gdb/testsuite] FAIL: gdb.base/readline.exp: set width 7 (timeout) Date: Sat, 29 Apr 2023 07:41:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30400 --- Comment #2 from Tom de Vries --- In configure.ac we have: ... # These are the libraries checked by Readline.=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 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" =3D no; then CONFIG_OBS=3D"$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,=20=20= =20=20=20=20=20=20=20=20=20=20 otherwise, let long lines display in a single terminal line, and=20=20= =20=20=20=20=20=20=20=20=20 horizontally scroll it. */ displaying_prompt_first_line =3D 1; if (_rl_horizontal_scroll_mode =3D=3D 0 && _rl_term_up && *_rl_term_up) ... else /* Do horizontal scrolling. Much simpler */ ... and do horizontal scrolling, even though _rl_horizontal_scroll_mode =3D=3D = 0, because _rl_term_up =3D=3D nullptr. --=20 You are receiving this mail because: You are on the CC list for the bug.=