Skip to content

Commit

Permalink
leak tests: mark t3321-notes-stripspace.sh as leak-free
Browse files Browse the repository at this point in the history
This test was leak-free when t3321 was originally introduced, but never
marked as such:

    $ rev="$(git log --format='%H' --reverse -1 HEAD^ -- t/t3321-notes-stripspace.sh)"
    $ git checkout $rev

    $ make SANITIZE=leak
    [...]

    $ make -C t GIT_TEST_PASSING_SANITIZE_LEAK=check GIT_TEST_OPTS=--immediate t3321-notes-stripspace.sh
    [...]
    # passed all 27 test(s)
    1..27
    # faking up non-zero exit with --invert-exit-code
    make: *** [Makefile:66: t3321-notes-stripspace.sh] Error 1
    make: Leaving directory '/home/ttaylorr/src/git/t'

Mark this test as leak-free accordingly.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
ttaylorr authored and gitster committed Aug 29, 2023
1 parent 20debfb commit bac3ccc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/t3321-notes-stripspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

test_description='Test commit notes with stripspace behavior'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

MULTI_LF="$LF$LF$LF"
Expand Down

0 comments on commit bac3ccc

Please sign in to comment.