Merge branch 'rj/test-with-leak-check'

More tests that are supposed to pass leak sanitizer are marked as such.

* rj/test-with-leak-check:
  t0080: mark as leak-free
  test-lib: check for TEST_PASSES_SANITIZE_LEAK
  t6113: mark as leak-free
  t5332: mark as leak-free
maint
Junio C Hamano 2024-02-06 14:31:21 -08:00
commit 097c28db78
4 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,7 @@

test_description='Test the output of the unit test framework'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_expect_success 'TAP output from unit tests' '

View File

@ -2,6 +2,7 @@

test_description='pack-objects multi-pack reuse'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-bitmap.sh


View File

@ -1,10 +1,11 @@
#!/bin/sh

test_description='rev-list combining bitmaps and filters'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-bitmap.sh

TEST_PASSES_SANITIZE_LEAK=true

test_expect_success 'set up bitmapped repo' '
# one commit will have bitmaps, the other will not

View File

@ -1297,6 +1297,11 @@ test_done () {
EOF
fi

if test -z "$passes_sanitize_leak" && test_bool_env TEST_PASSES_SANITIZE_LEAK false
then
BAIL_OUT "Please, set TEST_PASSES_SANITIZE_LEAK before sourcing test-lib.sh"
fi

if test "$test_fixed" != 0
then
say_color error "# $test_fixed known breakage(s) vanished; please update test(s)"