From: Andrew Burgess <aburgess@redhat.com>
To: Keith Seitz <keiths@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/testsuite: fix intermittent failure in gdb.trace/mi-tsv-changed.exp
Date: Mon, 23 Nov 2026 23:10:08 +0000 [thread overview]
Message-ID: <xhuyfjym3ta9b.fsf@aburgess-thinkpadp1gen8.rmtgb.csb> (raw)
In-Reply-To: <e6cf5751-f89c-40b1-822e-a06ab8e9b5e7@redhat.com>
Keith Seitz <keiths@redhat.com> writes:
> Hi,
>
> On 11/16/26 2:15 PM, Andrew Burgess wrote:
>> Fix this by adding a mi_expect_stop call after sending the
>> -exec-continue. This way we wait for the breakpoint to be hit before
>> sending the -trace-stop. I've also changed two of the .* patterns to
>> include at least the first part of the expected output, e.g:
>>
>> mi_gdb_test "-trace-stop" {.*} "trace stop"
>>
>> becomes:
>>
>> mi_gdb_test "-trace-stop" "\\^done,stop-reason=\"request\",.*" \
>> "trace stop"
>>
>> Now, if the output gets out of sync we see more failures which makes
>> it easier to see where things got out of sync.
>>
>> With this change in place the test passes reliably for me now.
>
> Thank you so much for working on this. Your approach here is spot-on.
>
> Just one really tiny nit:
>
> >. Eventuallt there's a test with a pattern more details than just
> > {.*}, at which point we get a FAIL reported.
>
> Typo. :-)
Fixed.
>
> Reviewed-by: Keith Seitz <keiths@redhat.com>
I pushed this patch.
Thanks,
Andrew
prev parent reply other threads:[~2026-11-23 23:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 22:15 Andrew Burgess
2026-11-17 17:28 ` Keith Seitz
2026-11-23 23:10 ` Andrew Burgess [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=xhuyfjym3ta9b.fsf@aburgess-thinkpadp1gen8.rmtgb.csb \
--to=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=keiths@redhat.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