]> git.ipfire.org Git - thirdparty/git.git/commitdiff
leak tests: mark some add tests as passing with SANITIZE=leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2021 22:24:20 +0000 (00:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Nov 2021 18:23:08 +0000 (11:23 -0700)
Mark some tests that match "*add*" 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/t2200-add-update.sh
t/t2201-add-update-typechange.sh
t/t2202-add-addremove.sh
t/t2204-add-ignored.sh
t/t3702-add-edit.sh
t/t3703-add-magic-pathspec.sh
t/t3704-add-pathspec-file.sh

index 94c4cb0672126c6ae0440598a68e99182a4cffbf..a8297c294347125ebf14503a8d9a64d61bbf4ec4 100755 (executable)
@@ -14,6 +14,7 @@ only the updates to dir/sub.
 Also tested are "git add -u" without limiting, and "git add -u"
 without contents changes, and other conditions'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index a4eec0a3465bc02fb5c88e007ee4e32aa9c2794f..c6876b120f81b60b75e7314eae461078492a585e 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='more git add -u'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 9ee659098c45fbc18dfb5ccc2292f978320c1ebb..24c60bfd7905ba136ad59f090b40fe23a37d0a1e 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='git add --all'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 2e07365bbb055d27f558c78d26f657e314397398..89424abccd1c5663b8c2a8a6c3b023831887f330 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='giving ignored paths to git add'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 6c676645d837477077e9e349bf01398f3aa52b5f..a1801a8cbd4185f80253b019eb40a2c6a378d7ab 100755 (executable)
@@ -4,6 +4,8 @@
 #
 
 test_description='add -e basic tests'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 
index 3ef525a559d91b115a3dbe4a1373c8c51fb1fc98..d84071038e051552f5676c5c687e4e5e2646a39a 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='magic pathspec tests using git-add'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
index 9e35c1fbca68b67336ce2725d91b57a981e8b5c7..5d5164d1fc67f30a5e8f0da57457dd160e8760af 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='add --pathspec-from-file'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_tick