]> git.ipfire.org Git - thirdparty/git.git/commitdiff
leak tests: mark some read-tree tests as passing with SANITIZE=leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 12 Oct 2021 13:56:43 +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 "*read-tree*" 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 around half the tests that match
"*read-tree*" failing, but let's whitelist those that don't.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1000-read-tree-m-3way.sh
t/t1003-read-tree-prefix.sh
t/t1009-read-tree-new-index.sh
t/t1012-read-tree-df.sh
t/t1014-read-tree-confusing.sh

index 013c5a7bc32849eaa1c2fe7dea007d2788e3ea8a..0e8c0dfbbee643c80d2164b6dc8e80fe6522f2e0 100755 (executable)
@@ -71,6 +71,8 @@ In addition:
  DF: a special case, where A makes a directory and B makes a file.
 
 '
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-read-tree.sh
 . "$TEST_DIRECTORY"/lib-read-tree-m-3way.sh
index b6111cd150fdd69973142808cf4a86a4fa6b7e76..e0db2066f3194b7084f25ea249156c30711f3e2b 100755 (executable)
@@ -6,6 +6,7 @@
 test_description='git read-tree --prefix test.
 '
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 2935f68f8d215203ee1d2a9813de0039a89cb58f..fc179ac5dd604a085c9a19a491f0abb7ac4c066f 100755 (executable)
@@ -5,6 +5,7 @@ test_description='test read-tree into a fresh index file'
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 57f0770df1410ea2005d8637323ff0eeeb82d880..cde93d22cde4ab09fe9fa594a58813f1d3f276af 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='read-tree D/F conflict corner cases'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-read-tree.sh
 
index da3376b3bb274b3632d204f225908fec701fa644..8ea8d36818bea10b227640b4974cc57f2157fa2e 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 test_description='check that read-tree rejects confusing paths'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'create base tree' '