Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simon.marchi@efficios.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/testsuite: fix gdb.base/ui-redirect.exp pattern (gdb/26532)
Date: Tue, 25 Aug 2020 16:35:24 +0200	[thread overview]
Message-ID: <a06e52b3-0590-86af-9dc7-5a2ef2728204@suse.de> (raw)
In-Reply-To: <20200825132750.15105-1-simon.marchi@efficios.com>

On 8/25/20 3:27 PM, Simon Marchi wrote:
> Commit 1eb8556f5a8b ("gdb: add infrun_debug_printf macro") changed the
> debug output format for `set debug infrun 1`.  It broke test
> gdb.base/ui-redirect.exp, which I missed:
> 
>     FAIL: gdb.base/ui-redirect.exp: debugging: continue
> 

How about the other fail:
...
FAIL: gdb.threads/stepi-random-signal.exp: stepi (no random signal)
...

?

Thanks,
- Tom

> Fix it by adjusting the pattern in the test to the new reality.
> 
> gdb/testsuite/ChangeLog:
> 
> 	PR gdb/26532
> 	* gdb.base/ui-redirect.exp: Update pattern.
> 
> Change-Id: Ie8a8f6675e35a0cab55109b1534b44eb51baec9d
> ---
>  gdb/testsuite/gdb.base/ui-redirect.exp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gdb/testsuite/gdb.base/ui-redirect.exp b/gdb/testsuite/gdb.base/ui-redirect.exp
> index e1e6a7b0a08..ef0a79178c7 100644
> --- a/gdb/testsuite/gdb.base/ui-redirect.exp
> +++ b/gdb/testsuite/gdb.base/ui-redirect.exp
> @@ -117,7 +117,7 @@ with_test_prefix "debugging" {
>      gdb_test "set debug infrun 1"
>      gdb_test "set logging on" \
>      "Copying output to /dev/null.*Copying debug output to /dev/null\\."
> -    gdb_test "continue" "Continuing.*infrun:.*infrun:.*Breakpoint \[0-9\]+, foo.*"
> +    gdb_test "continue" {Continuing.*\[infrun\] .*\[infrun\] .*Breakpoint [0-9]+, foo.*}
>      gdb_test "set debug infrun 0"
>      gdb_test "set logging off" "Done logging to /dev/null\\."
>      gdb_test "help" "List of classes of commands:.*"
> 


  reply	other threads:[~2020-08-25 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-25 13:27 Simon Marchi
2020-08-25 14:35 ` Tom de Vries [this message]
2020-08-25 14:49   ` Simon Marchi
2020-08-25 14:55     ` Tom de Vries
2020-08-25 15:01       ` Simon Marchi

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=a06e52b3-0590-86af-9dc7-5a2ef2728204@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@efficios.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