]> 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>
Tue, 12 Oct 2021 13:56:45 +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 "*{mktree,commit,diff,grep,rm,merge,hunk}*"
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).

These were picked because we still have a lot of failures in adjacent
areas, and we didn't have much if any coverage of e.g. grep and diff
before this change, we could still whitelist a lot more tests, but
let's stop for now.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1010-mktree.sh
t/t1100-commit-tree-options.sh
t/t3601-rm-pathspec-file.sh
t/t4002-diff-basic.sh
t/t4016-diff-quote.sh
t/t4019-diff-wserror.sh
t/t4025-hunk-header.sh
t/t4300-merge-tree.sh
t/t7813-grep-icase-iso.sh
t/t7816-grep-binary-pattern.sh

index b946f8768649dd76d8a175877c63d49244e00ffb..48bfad07abca6f3ee8430078372108451517aaed 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='git mktree'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index ae66ba5babf347f12f2c4cb213b0de72ea980da2..0f37a43fd3c5b2638fe41408a3860ce2facd6401 100755 (executable)
@@ -12,6 +12,7 @@ Also make sure that command line parser understands the normal
 "flags first and then non flag arguments" command line.
 '
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 cat >expected <<EOF
index 7de21f8bcff1c5cf713c69e3ed1c8ff9a41c10a8..b2a8db69afc69f20c33309e808711c0502467770 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='rm --pathspec-from-file'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_tick
index 6a9f010197c7ca60a859670abeb3a3df1950a09c..ea52e5b91b75e3df741cbc12b927cacd6ee08afb 100755 (executable)
@@ -6,6 +6,8 @@
 test_description='Test diff raw-output.
 
 '
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 . "$TEST_DIRECTORY"/lib-read-tree-m-3way.sh
index 876271d6826cca4fea73e8cdb459e6983db5b209..5a8d8876831657d93837fe3ccfad141f15119ec9 100755 (executable)
@@ -6,6 +6,7 @@
 test_description='Quoting paths in diff output.
 '
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 P0='pathname'
index c6135c75488ff01797a98e43163e0b0c5e6be169..c68729ac098401c16c2d7d232dec35d56e545846 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='diff whitespace error detection'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 35578f2bb91dab8a00f40b5fbb26bd0a31ca7d58..6356961de46c78f5168ab437b9aff50fc979afd0 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='diff hunk header truncation'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 N='日本語'
index e59601e5fe9b75eda9f4daaa801c1ed6c40d6fc6..c52c8a21fae6d0593cc120485e8d6eaa8a95ccbc 100755 (executable)
@@ -4,6 +4,8 @@
 #
 
 test_description='git merge-tree'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
index 701e08a8e5941d711ffbef52da972acb7ab9a41e..1227885737b859fd4937f1f78a0a9250f103703c 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='grep icase on non-English locales'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./lib-gettext.sh
 
 test_expect_success GETTEXT_ISO_LOCALE 'setup' '
index 9d67a5fc4cfad3b8a8ac9c2d3e7689150dbbf2cc..fdb2355649e31a8153f3ff60fe3ffbb531a2a7aa 100755 (executable)
@@ -2,6 +2,7 @@
 
 test_description='git grep with a binary pattern files'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./lib-gettext.sh
 
 nul_match_internal () {