From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/testsuite] Fix another fail and tcl error in gdb.dap/sources.exp
Date: Wed, 14 Feb 2024 09:56:09 +0100 [thread overview]
Message-ID: <72dd6f2d-1012-4411-887a-2449b7138d2a@suse.de> (raw)
In-Reply-To: <87eddg5j9u.fsf@tromey.com>
On 2/13/24 19:08, Tom Tromey wrote:
>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
>
> Tom> These are the same type of tcl error and FAIL I just fixed for a later
> Tom> request in the same test-case.
>
> Tom> Fix this by:
> Tom> - moving the wait-for-stop to before the loadedSources request to fix the
> Tom> FAIL, and
> Tom> - checking for $obj == "" to fix the tcl error.
>
> This is fine as long as these tests are actually being run in the end.
> What I mean is, it would be bad to cover up a real failure of some kind.
>
Hi Tom,
thanks for the review.
Agreed, that would be bad, but I don't think this is the case.
The only thing that's happening here is that the test-case is cut short
as soon as one test FAILs. There's always a FAIL to signal that
something went wrong.
The dap_check_request_and_response proc itself produces a FAIL, which is
why it isn't obvious from looking at the test-case that a FAIL is produced.
[ I'm on the fence about this. Having the proc itself produce the fail
guarantees a FAIL without effort from the call, but make you wonder when
looking at the call whether something is missing. Conversely, having to
check the result of the call and produce a FAIL means it can be forgotten. ]
I know there's some high level goal to produce the same amount of
PASS/FAIL, but IMO that's to be applied if that's easy, if it makes the
test-case convoluted then it's not worth the trouble.
Committed.
Thanks,
- Tom
> Approved-By: Tom Tromey <tom@tromey.com>
>
> Tom
prev parent reply other threads:[~2024-02-14 8:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 16:18 Tom de Vries
2024-02-13 18:08 ` Tom Tromey
2024-02-14 8:56 ` Tom de Vries [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=72dd6f2d-1012-4411-887a-2449b7138d2a@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).