]> git.ipfire.org Git - thirdparty/git.git/commitdiff
leak tests: mark some misc tests as passing with SANITIZE=leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2021 22:24:13 +0000 (00:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Nov 2021 18:23:08 +0000 (11:23 -0700)
As in 7ff24785cb7 (leak tests: mark some misc tests as passing with
SANITIZE=leak, 2021-10-12) continue marking various miscellaneous
tests 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>
17 files changed:
t/t1420-lost-found.sh
t/t1600-index.sh
t/t2000-conflict-when-checking-files-out.sh
t/t2100-update-cache-badpath.sh
t/t3908-stash-in-worktree.sh
t/t4007-rename-3.sh
t/t5002-archive-attr-pattern.sh
t/t5200-update-server-info.sh
t/t5307-pack-missing-commit.sh
t/t5555-http-smart-common.sh
t/t5701-git-serve.sh
t/t5704-protocol-violations.sh
t/t6136-pathspec-in-bare.sh
t/t7101-reset-empty-subdirs.sh
t/t7103-reset-bare.sh
t/t7525-status-rename.sh
t/t7526-commit-pathspec-file.sh

index dc9e402c55574d981e161d4e38e74617c411f46d..dbe15a0be1051608c4dc6dd727e1589e9422b7b5 100755 (executable)
@@ -4,6 +4,8 @@
 #
 
 test_description='Test fsck --lost-found'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 46329c488b19cd41759d78c6d89a4411d193402e..010989f90e63f9ddf5a88d25198998c55782bbd2 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='index file specific tests'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 sane_unset GIT_TEST_SPLIT_INDEX
index f18616ad2be3eaaf6dc72ab9131c88a0c9bdf2fc..79fc97f1d7eb42675c85ef29b8cb36a75d7e7669 100755 (executable)
@@ -21,6 +21,7 @@ test_description='git conflicts when checking files out test.'
 # path1 is occupied by a non-directory.  With "-f" flag, it should remove
 # the conflicting paths and succeed.
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 show_files() {
index 2df3fdde8bf665a2b531dd367b70a7a767ee3dbc..7915e7b8211dbb16f49c9f1e5f0433c6f3230e58 100755 (executable)
@@ -22,6 +22,7 @@ and tries to git update-index --add the following:
 All of the attempts should fail.
 '
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 mkdir path2 path3
index 2b2b366ef94b7ca429416d81cc4858201658d3cb..347a89b030b68dc87ecea8f40dfe9d1b0ca8db16 100755 (executable)
@@ -5,6 +5,7 @@
 
 test_description='Test git stash in a worktree'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
index c634653b5be6874f1f9f26f6e2d6c3605d2330e1..b86165cbac5970fda7b169f80edea8deea5ccf12 100755 (executable)
@@ -6,6 +6,8 @@
 test_description='Rename interaction with pathspec.
 
 '
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
 
index bda6d7d7e9e835213f9b1323407222850db47ad6..a66b5ba27e869e377a317258c03cde8953323d8f 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='git archive attribute pattern tests'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_exists() {
index 21a58eecb9b59a344e81f222b322a8ffe080e22e..ed9dfd624c754206e58b7eaaf0c023b573d8ffc1 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='Test git update-server-info'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' 'test_commit file'
index f4338abb78a83967a1bdc6b264600262a0f94d65..d3482ab279c91d6a005cdc30a9d0c74d301d4df4 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='pack should notice missing commit objects'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 49faf5e283bdb05b090f9682cd315e94eea4d217..b1cfe8b7dba816ddcaee85c0a3e19d0c958e6cd5 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='test functionality common to smart fetch & push'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
index aa1827d841d47779ef3bb081aba8205802395fb2..1896f671cb37f916bc09e50f0f5a45df81da1327 100755 (executable)
@@ -5,6 +5,7 @@ test_description='test protocol v2 server commands'
 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 'test capability advertisement' '
index bc393d7c31939f6e592815614521741c3e8dc087..ae1a00afb09e2f38b272602a9c39d51f0fa72110 100755 (executable)
@@ -4,6 +4,8 @@ test_description='Test responses to violations of the network protocol. In most
 of these cases it will generally be acceptable for one side to break off
 communications if the other side says something unexpected. We are mostly
 making sure that we do not segfault or otherwise behave badly.'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'extra delim packet in v2 ls-refs args' '
index b117251366dd6fa1f3e6cd59c03bcefd88811405..ae8b5379e24d52c559e0d02da6f95fdbc40874c8 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='diagnosing out-of-scope pathspec'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup a bare and non-bare repository' '
index 5530651eea492cacf106a89a88c261bc101707d7..638bb04e217600387fdf3f46fb8ba1caacba0f94 100755 (executable)
@@ -4,6 +4,8 @@
 #
 
 test_description='git reset should cull empty subdirs'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-diff-data.sh
 
index afe36a533c4bc603d5acced8de1d607a4a7d5fc8..0de83e36199ec44eec0ea1ca568c730da759d5d3 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 test_description='git reset in a bare repository'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup non-bare' '
index a62736dce09f6b8623929b20cb3a70f56dfeabc0..22bf5c7e5dc108fabfc165e948733d6221855785 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='git status rename detection options'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
index 5fbe47ebcd02714b8bf2e0cdf5f0d32064b55fd8..dca62fc48e52031c83a4f78caa45181b584b38f4 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='commit --pathspec-from-file'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_tick