]> git.ipfire.org Git - thirdparty/git.git/commitdiff
leak tests: run various "test-tool" tests in t00*.sh SANITIZE=leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 12 Oct 2021 13:56:38 +0000 (15:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Oct 2021 01:23:24 +0000 (18:23 -0700)
Mark various existing tests in t00*.sh that invoke a "test-tool" with
as passing when git is compiled with SANITIZE=leak.

They'll now be listed 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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0013-sha1dc.sh
t/t0052-simple-ipc.sh
t/t0061-run-command.sh
t/t0065-strcmp-offset.sh
t/t0066-dir-iterator.sh
t/t0067-parse_pathspec_file.sh

index 419f31a8f7d4cb20041f054d25ddb25c7d43e3fb..9ad76080aa49d46d03e2bb805d039e6a88d87e5c 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 test_description='test sha1 collision detection'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 TEST_DATA="$TEST_DIRECTORY/t0013"
 
index ff98be31a51b360ef917aba97dbda0e53719b58a..1a36a535743c14c29b993d77ed9bf6482c0b16a7 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='simple command server'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test-tool simple-ipc SUPPORTS_SIMPLE_IPC || {
index 7d599675e35a75637a75ab6bfed19ff7f784a312..ee281909bc37267458fa0ea47480cf7cbbf537c8 100755 (executable)
@@ -5,6 +5,7 @@
 
 test_description='Test run command'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 cat >hello-script <<-EOF
index 91fa639c4a74ed69ed69ff7360728b2f1ab08a66..94e34c83ed96d86b096385610565a3179f7a9f1c 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='Test strcmp_offset functionality'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 while read s1 s2 expect
index 92910e4e6c13ce381dddefcf197dea26a07efd88..63a1a45cd30921a5b0d28b8d5db63046aeb2a3ea 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='Test the dir-iterator functionality'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
index 7bab49f361a9bfea7cf72042d60e65b25698e5a9..0188d0423a0aa246d40b0735a31470f1bb97e8a6 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='Test parse_pathspec_file()'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'one item from stdin' '