From: Pedro Alves <palves@redhat.com>
To: Sandra Loosemore <sandra@codesourcery.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [patch] gdb/testsuite: Adjust command completion output when TUI is disabled
Date: Tue, 23 Jun 2020 13:06:54 +0100 [thread overview]
Message-ID: <bd02187d-0c24-a621-cfc8-11c130dbdbbd@redhat.com> (raw)
In-Reply-To: <73d8a79e-8dea-cbbb-a29f-925eda3230dd@codesourcery.com>
On 6/23/20 7:27 AM, Sandra Loosemore wrote:
> This is another almost-obvious testsuite fix, for one of the command-completion tests that was failing due to an incorrect assumption that TUI commands are always present. OK to commit, or is this just a poorly-designed testcase that we should rewrite some other way instead?
With my "I wrote that" hat on, I don't see any other way to write that
test. We want to check that TAB on an empty input line completes
all commands. "+" only happens to be the one that sorts second in
the all-commands set. The only way that I think we could get rid of the
TUI vs non-TUI difference is if we limit the number of completions to 1
instead of 2. Then only "!" shows up. But the "1 completion match only"
case makes GDB behave differently (it completes immediately), so I don't
think that's a good idea.
Thus, I think your patch is OK.
Thanks,
Pedro Alves
prev parent reply other threads:[~2020-06-23 12:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-23 6:27 Sandra Loosemore
2020-06-23 8:39 ` Andrew Burgess
2020-06-23 12:06 ` Pedro Alves [this message]
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=bd02187d-0c24-a621-cfc8-11c130dbdbbd@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=sandra@codesourcery.com \
/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