]> git.ipfire.org Git - thirdparty/git.git/commitdiff
leak tests: mark some ls-files tests as passing with SANITIZE=leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 12 Oct 2021 13:56:42 +0000 (15:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Oct 2021 01:23:24 +0000 (18:23 -0700)
Mark some tests that match "*ls-files*" 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). We still have others that match '*ls-files*" that fail
under SANITIZE=leak.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3000-ls-files-others.sh
t/t3002-ls-files-dashpath.sh
t/t3003-ls-files-exclude.sh
t/t3004-ls-files-basic.sh
t/t3006-ls-files-long.sh
t/t3008-ls-files-lazy-init-name-hash.sh

index 740ce56eab5c78b18a85834e9dc9c091d195c2d1..11af4552f7461e1091e71407517504a6497867e5 100755 (executable)
@@ -15,6 +15,8 @@ filesystem.
     path3/file3 - a file in a directory
     path4       - an empty directory
 '
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup ' '
index 8704b04e1b4150357a7a01c91ac59bb1f22cbb8e..54d22a45dfbc4b7ca1080fc7bac27284fd3484f9 100755 (executable)
@@ -12,6 +12,8 @@ filesystem.
     -foo       - a file with a funny name.
     --         - another file with a funny name.
 '
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success \
index c41c4f046abf3c79ae54f33d56945726332b25ec..7933dff9b3849181b4c168096d166f1054a2a374 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 test_description='ls-files --exclude does not affect index files'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'create repo with file' '
index 9fd5a1f188aae0507c335de65a742977c6976d69..a16e25c79bdde748cbb9c1d5419960e0e5f8f3f5 100755 (executable)
@@ -6,6 +6,7 @@ This test runs git ls-files with various unusual or malformed
 command-line arguments.
 '
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'ls-files in empty repository' '
index e109c3fbfb5f57c35044299502d1ad406210c998..2aaf91ebc8c323a5ce4475bb8a7e03543dc319ad 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 test_description='overly long paths'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 85f370495876f51691322f3556b944a023ad8388..51d3dffaa66528ff36ebe7b6660f823a2fe56371 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='Test the lazy init name hash with various folder structures'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 if test 1 -eq $(test-tool online-cpus)