From: Tom de Vries <tdevries@suse.de>
To: Bernd Edlinger <bernd.edlinger@hotmail.de>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Fix test failures when TUI is not enabled
Date: Fri, 9 Aug 2024 13:17:53 +0200 [thread overview]
Message-ID: <0b383d4f-9d37-403a-9fc5-cae7e27b1673@suse.de> (raw)
In-Reply-To: <AS1PR01MB94658E5B17D98C86664B225EE4BA2@AS1PR01MB9465.eurprd01.prod.exchangelabs.com>
On 8/9/24 11:48, Bernd Edlinger wrote:
> On 8/9/24 11:28, Tom de Vries wrote:
>> On 8/9/24 10:47, Bernd Edlinger wrote:
>>> This adds some missing require allow_tui_tests.
>>>
>>> When tui is not enabled those test cases do typically
>>> fail, but most of them only after a long time-out:
>>>
>>> FAIL: gdb.base/new-ui.exp: do_test_invalid_args: new-ui with tui
>>> FAIL: gdb.base/wrap-line.exp: term=ansi: width-hard-coded: wrap (timeout)
>>> FAIL: gdb.base/wrap-line.exp: term=ansi: width-auto-detected: wrap (timeout)
>>> FAIL: gdb.base/wrap-line.exp: term=xterm: width-hard-coded: $gdb_width == $readline_width
>>> FAIL: gdb.base/wrap-line.exp: term=xterm: width-hard-coded: wrap (timeout)
>>> FAIL: gdb.base/wrap-line.exp: term=xterm: width-auto-detected: $gdb_width == $readline_width
>>> FAIL: gdb.base/wrap-line.exp: term=xterm: width-auto-detected: wrap (timeout)
>>> FAIL: gdb.tui/wrap-line.exp: width-hard-coded: cli: wrap
>>> FAIL: gdb.tui/wrap-line.exp: width-hard-coded: cli: prompt after wrap
>>> FAIL: gdb.tui/wrap-line.exp: width-auto-detected: cli: wrap
>>> FAIL: gdb.tui/wrap-line.exp: width-auto-detected: cli: prompt after wrap
>>> ---
>>
>> Hi,
>>
>> I disabled tui support using --disable-tui, and can't reproduce the wrap-line fails you see.
>>
>> Is it possible that you're running into "[gdb/testsuite, stub-termcap] FAIL: gdb.base/wrap-line.exp: term=ansi: width-hard-coded: wrap (timeout)" @ https://sourceware.org/bugzilla/show_bug.cgi?id=31201 ?
>>
>
> Yes, that could be the case.
>
> I did not explicitly opt-out tui, I just did never care to install
> e.g. libcurses etc. and the configure did the rest.
That sounds like you ran into that PR then.
>> Anyway, adding require allow_tui_tests in those two test-cases looks wrong.
>>
>
> Okay, but what is going on then?
>
We can get the same effect using "TERM=dumb gdb".
It forces readline's horizontal-scroll-mode to activate (unfortunately,
without affecting the value of the corresponding variable that we can
read with bind -v).
>> In the case of gdb.tui/wrap-line.exp, there is already a test that bails
>> out if TUI is unsupported, but still allows testing of things that should work regardless.
>>
>> In the case of gdb.base/wrap-line.exp, it's a test-case I added specifically to test the behaviour of prompt wrapping in the CLI, not in TUI, so requiring allow_tui_tests there is non-sensical.
>>
>
> Well is there a better way to detect the issue without going into this long timeout,
> or can it be fixed somehow?
>
We could accept the string produced by horizontal-scroll-mode and
produce an unsupported and bail out.
Thanks,
- Tom
>> The change in gdb.base/new-ui.exp LGTM. You could submit a v2 with just that change.
>>
>
> OK, will do.
>
> Thanks
> Bernd.
>
next prev parent reply other threads:[~2024-08-09 11:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 8:47 Bernd Edlinger
2024-08-09 9:28 ` Tom de Vries
2024-08-09 9:48 ` Bernd Edlinger
2024-08-09 11:11 ` Bernd Edlinger
2024-08-09 11:17 ` Tom de Vries [this message]
2024-08-12 4:54 ` Bernd Edlinger
2024-08-12 9:43 ` [PATCH] Fix test failures when tui " Bernd Edlinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0b383d4f-9d37-403a-9fc5-cae7e27b1673@suse.de \
--to=tdevries@suse.de \
--cc=bernd.edlinger@hotmail.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox