From: "Rubén Justo" <rjusto@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git List <git@vger.kernel.org>, Jeff King <peff@peff.net>,
Eric Sunshine <sunshine@sunshineco.com>
Subject: Re: [PATCH] test-lib: fix GIT_TEST_SANITIZE_LEAK_LOG
Date: Wed, 3 Jul 2024 23:35:48 +0200 [thread overview]
Message-ID: <bda01080-1231-476a-9770-88b62a75ffe2@gmail.com> (raw)
In-Reply-To: <xmqqv81ovp9l.fsf@gitster.g>
On Mon, Jul 01, 2024 at 01:19:34PM -0700, Junio C Hamano wrote:
> Your patch from September 2023 [*] did mention it upfront:
>
> GIT_TEST_SANITIZE_LEAK_LOG=true with a test that leaks, will
> make the test return zero unintentionally.
>
> With that inserted in front of the proposed log message, the
> resulting explanation looks reasonable to me.
I see that you have already added this paragraph to what is already in
"seen". OK.
> > diff --git a/t/test-lib.sh b/t/test-lib.sh
> > index 79d3e0e7d9..7ed6d3fc47 100644
> > --- a/t/test-lib.sh
> > +++ b/t/test-lib.sh
> > @@ -1269,9 +1269,12 @@ check_test_results_san_file_ () {
> > then
> > say "As TEST_PASSES_SANITIZE_LEAK=true isn't set the above leak is 'ok' with GIT_TEST_PASSING_SANITIZE_LEAK=check" &&
> > invert_exit_code=t
> > - else
> > + elif test "$test_failure" = 0
> > + then
> > say "With GIT_TEST_SANITIZE_LEAK_LOG=true our logs revealed a memory leak, exit non-zero!" &&
> > invert_exit_code=t
> > + else
> > + say "With GIT_TEST_SANITIZE_LEAK_LOG=true our logs revealed a memory leak..."
> > fi
> > }
>
> This is outside the scope of this patch simply because it is
> inherited from the original, but does ", exit non-zero!" part of
> the message really add any value?
Explicitly indicating that the error is being forced due to
"GIT_TEST_SANITIZE_LEAK_LOG=true", for a test that doesn't fail when run
normally or even when run with just
"GIT_TEST_PASSING_SANITIZE_LEAK=yes", could save us some confusion.
So, I dunno.
Anyway, I agree that this can be addressed later.
Thanks.
next prev parent reply other threads:[~2024-07-03 21:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-30 6:42 [PATCH] test-lib: fix GIT_TEST_SANITIZE_LEAK_LOG Rubén Justo
2024-07-01 3:49 ` Jeff King
2024-07-01 19:29 ` Junio C Hamano
2024-07-01 20:19 ` Junio C Hamano
2024-07-03 21:35 ` Rubén Justo [this message]
2024-07-03 21:44 ` Rubén Justo
2024-07-06 6:18 ` Jeff King
2024-07-06 11:20 ` Rubén Justo
2024-07-06 23:13 ` Jeff King
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=bda01080-1231-476a-9770-88b62a75ffe2@gmail.com \
--to=rjusto@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=sunshine@sunshineco.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.