diff mbox series

[03/10] leak tests: mark t0000-init.sh as passing with SANITIZE=leak

Message ID patch-03.10-3a7dd917d9f-20211006T094705Z-avarab@gmail.com (mailing list archive)
State Superseded
Headers show
Series leak tests: mark more tests as passing | expand

Commit Message

Ævar Arnfjörð Bjarmason Oct. 6, 2021, 9:50 a.m. UTC
Mark "t000-init.sh" as passing when git is compiled with SANITIZE=leak.

It'll now be whitelisted as running under the
"GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI
target).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 t/t0001-init.sh | 1 +
 1 file changed, 1 insertion(+)

Comments

Junio C Hamano Oct. 7, 2021, 10:35 p.m. UTC | #1
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:

> Mark "t000-init.sh" as passing when git is compiled with SANITIZE=leak.

"t0000-init.sh", I think.  Why should we have a separate one for
this script, rather than it being a part of [01/10]?

>
> It'll now be whitelisted as running under the
> "GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI
> target).
>
> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
> ---
>  t/t0001-init.sh | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/t/t0001-init.sh b/t/t0001-init.sh
> index df544bb321f..7603ad2f82b 100755
> --- a/t/t0001-init.sh
> +++ b/t/t0001-init.sh
> @@ -2,6 +2,7 @@
>  
>  test_description='git init'
>  
> +TEST_PASSES_SANITIZE_LEAK=true
>  . ./test-lib.sh
>  
>  check_config () {
Ævar Arnfjörð Bjarmason Oct. 12, 2021, 1:39 p.m. UTC | #2
On Thu, Oct 07 2021, Junio C Hamano wrote:

> Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
>
>> Mark "t000-init.sh" as passing when git is compiled with SANITIZE=leak.
>
> "t0000-init.sh", I think.  Why should we have a separate one for
> this script, rather than it being a part of [01/10]?

I figured t0000-init.sh was big & scary compared to the rest, but will
squash.
diff mbox series

Patch

diff --git a/t/t0001-init.sh b/t/t0001-init.sh
index df544bb321f..7603ad2f82b 100755
--- a/t/t0001-init.sh
+++ b/t/t0001-init.sh
@@ -2,6 +2,7 @@ 
 
 test_description='git init'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 check_config () {