git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] test-lib: have SANITIZE=leak imply TEST_NO_MALLOC_CHECK

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 29, 2022, 15:29 UTC
Message-ID
<xmqqill6p5bq.fsf@gitster.g>
In-Reply-To
<a013246a-777c-acf8-d2c1-3bf9b78aa9e8@dunelm.org.uk>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 13 quoted lines
> Oh so the LD_PRELOAD breaks both sanitizers but only one of them complains
>
>>   # Add libc MALLOC and MALLOC_PERTURB test only if we are not executing
>> -# the test with valgrind and have not compiled with SANITIZE=address.
>> +# the test with valgrind and have not compiled with conflict SANITIZE
>> +# options.
>>   if test -n "$valgrind" ||
>> +   test -n "$SANITIZE_LEAK" ||
>>      test -n "$SANITIZE_ADDRESS" ||
>>      test -n "$TEST_NO_MALLOC_CHECK"
>
> The indentation is dodgy, also it would be nice to keep these in
> alphabetical order. Other than that this looks like a sensible fix.
Thanks, both.

Will re-queue with a local fix-up for the indentation. As to the ordering, I usually prefer to have new ones appended to the last unless there are other reasons, and "keep them sorted" is such a reason, so I may do so as well while at it.

Previous: Phillip Wood
Message 4 of 4 in “test-lib: have SANITIZE=leak imply TEST_NO_MALLOC_CHECK”
  1. test-lib: have SANITIZE=leak imply TEST_NO_MALLOC_CHECKÆvar Arnfjörð Bjarmason, Sep 28, 2022
  2. Rubén JustoSep 28, 2022
  3. Phillip WoodSep 29, 2022
  4. Junio C HamanoSep 29, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.