Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Andrew Burgess <aburgess@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/testsuite: fix intermittent failure in gdb.trace/mi-tsv-changed.exp
Date: Tue, 17 Nov 2026 09:28:13 -0800	[thread overview]
Message-ID: <e6cf5751-f89c-40b1-822e-a06ab8e9b5e7@redhat.com> (raw)
In-Reply-To: <44281f8bb47c5c1245c1667977912888b160394a.1794867326.git.aburgess@redhat.com>

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. :-)

Reviewed-by: Keith Seitz <keiths@redhat.com>

Keith


  reply	other threads:[~2026-11-17 17:28 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 [this message]
2026-11-23 23:10   ` Andrew Burgess

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=e6cf5751-f89c-40b1-822e-a06ab8e9b5e7@redhat.com \
    --to=keiths@redhat.com \
    --cc=aburgess@redhat.com \
    --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