From: Bernd Schmidt <bschmidt@redhat.com>
To: David Malcolm <dmalcolm@redhat.com>,
"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Cc: Uros Bizjak <ubizjak@gmail.com>
Subject: Re: [PATCH] PR testsuite/69181: ensure expected multiline outputs is cleared per-test
Date: Sat, 09 Jan 2016 02:07:00 -0000 [thread overview]
Message-ID: <56906B6B.9020800@redhat.com> (raw)
In-Reply-To: <1452300686-14972-1-git-send-email-dmalcolm@redhat.com>
On 01/09/2016 01:51 AM, David Malcolm wrote:
> The root cause here is that the logic to reset the list of expected
> multiline outputs was being run from:
> handle-multiline-outputs, called by
> prune.exp's prune_gcc_output
> and none of that happens if the test is skipped by a target exclusion
> in dg-do.
Thanks for tackling this.
> diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp
> index f9ec206..f778bca 100644
> --- a/gcc/testsuite/lib/gcc-dg.exp
> +++ b/gcc/testsuite/lib/gcc-dg.exp
> @@ -836,6 +836,7 @@ if { [info procs saved-dg-test] == [list] } {
> global testname_with_flags
> global set_target_env_var
> global keep_saved_temps_suffixes
> + global multiline_expected_outputs
>
> if { [ catch { eval saved-dg-test $args } errmsg ] } {
> set saved_info $errorInfo
> @@ -871,6 +872,7 @@ if { [info procs saved-dg-test] == [list] } {
> if [info exists testname_with_flags] {
> unset testname_with_flags
> }
> + set multiline_expected_outputs []
> }
> }
I looked at this code, and there are two near-identical blocks which
reset all these variables. You are modifying only one of them, leaving
the one inside the if { catch } thing unchanged - is this intentional?
Otherwise this looks reasonable IMO.
Bernd
next prev parent reply other threads:[~2016-01-09 2:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-29 9:17 [PATCH] testsuite/lib/multline.exp: show test name and line numbers Uros Bizjak
2016-01-07 12:11 ` Bernd Schmidt
2016-01-07 12:23 ` Uros Bizjak
2016-01-09 0:30 ` [PATCH] PR testsuite/69181: ensure expected multiline outputs is cleared per-test David Malcolm
2016-01-09 2:07 ` Bernd Schmidt [this message]
2016-01-12 19:34 ` David Malcolm
2016-01-13 6:21 ` Jeff Law
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=56906B6B.9020800@redhat.com \
--to=bschmidt@redhat.com \
--cc=dmalcolm@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=ubizjak@gmail.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).