git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 10/10] leak tests: mark some misc tests as passing with SANITIZE=leak

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 6, 2021, 09:50 UTC
Message-ID
<patch-10.10-1b68890f614-20211006T094705Z-avarab@gmail.com>
In-Reply-To
<cover-00.10-00000000000-20211006T094705Z-avarab@gmail.com>

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 whitelisted 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>
---
 t/t1010-mktree.sh               | 1 +
 t/t1100-commit-tree-options.sh  | 1 +
 t/t3601-rm-pathspec-file.sh     | 1 +
 t/t4002-diff-basic.sh           | 2 ++
 t/t4016-diff-quote.sh           | 1 +
 t/t4019-diff-wserror.sh         | 1 +
 t/t4025-hunk-header.sh          | 1 +
 t/t4300-merge-tree.sh           | 2 ++
 t/t7812-grep-icase-non-ascii.sh | 1 +
 t/t7813-grep-icase-iso.sh       | 1 +
 t/t7816-grep-binary-pattern.sh  | 1 +
 11 files changed, 13 insertions(+)
diff --git a/t/t1010-mktree.sh b/t/t1010-mktree.sh
index b946f876864..48bfad07abc 100755
--- a/t/t1010-mktree.sh
+++ b/t/t1010-mktree.sh
@@ -2,6 +2,7 @@
 
 test_description='git mktree'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
diff --git a/t/t1100-commit-tree-options.sh b/t/t1100-commit-tree-options.sh
index ae66ba5babf..0f37a43fd3c 100755
--- a/t/t1100-commit-tree-options.sh
+++ b/t/t1100-commit-tree-options.sh
@@ -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
diff --git a/t/t3601-rm-pathspec-file.sh b/t/t3601-rm-pathspec-file.sh
index 7de21f8bcff..b2a8db69afc 100755
--- a/t/t3601-rm-pathspec-file.sh
+++ b/t/t3601-rm-pathspec-file.sh
@@ -2,6 +2,7 @@
 
 test_description='rm --pathspec-from-file'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_tick
diff --git a/t/t4002-diff-basic.sh b/t/t4002-diff-basic.sh
index 6a9f010197c..ea52e5b91b7 100755
--- a/t/t4002-diff-basic.sh
+++ b/t/t4002-diff-basic.sh
@@ -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
diff --git a/t/t4016-diff-quote.sh b/t/t4016-diff-quote.sh
index 876271d6826..5a8d8876831 100755
--- a/t/t4016-diff-quote.sh
+++ b/t/t4016-diff-quote.sh
@@ -6,6 +6,7 @@
 test_description='Quoting paths in diff output.
 '
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 P0='pathname'
diff --git a/t/t4019-diff-wserror.sh b/t/t4019-diff-wserror.sh
index c6135c75488..c68729ac098 100755
--- a/t/t4019-diff-wserror.sh
+++ b/t/t4019-diff-wserror.sh
@@ -2,6 +2,7 @@
 
 test_description='diff whitespace error detection'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
diff --git a/t/t4025-hunk-header.sh b/t/t4025-hunk-header.sh
index 35578f2bb91..6356961de46 100755
--- a/t/t4025-hunk-header.sh
+++ b/t/t4025-hunk-header.sh
@@ -2,6 +2,7 @@
 
 test_description='diff hunk header truncation'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 N='日本語'
diff --git a/t/t4300-merge-tree.sh b/t/t4300-merge-tree.sh
index e59601e5fe9..c52c8a21fae 100755
--- a/t/t4300-merge-tree.sh
+++ b/t/t4300-merge-tree.sh
@@ -4,6 +4,8 @@
 #
 
 test_description='git merge-tree'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success setup '
diff --git a/t/t7812-grep-icase-non-ascii.sh b/t/t7812-grep-icase-non-ascii.sh
index e5d1e4ea686..79419ead025 100755
--- a/t/t7812-grep-icase-non-ascii.sh
+++ b/t/t7812-grep-icase-non-ascii.sh
@@ -2,6 +2,7 @@
 
 test_description='grep icase on non-English locales'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./lib-gettext.sh
 
 test_expect_success GETTEXT_LOCALE 'setup' '
diff --git a/t/t7813-grep-icase-iso.sh b/t/t7813-grep-icase-iso.sh
index 701e08a8e59..1227885737b 100755
--- a/t/t7813-grep-icase-iso.sh
+++ b/t/t7813-grep-icase-iso.sh
@@ -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' '
diff --git a/t/t7816-grep-binary-pattern.sh b/t/t7816-grep-binary-pattern.sh
index 9d67a5fc4cf..fdb2355649e 100755
--- a/t/t7816-grep-binary-pattern.sh
+++ b/t/t7816-grep-binary-pattern.sh
@@ -2,6 +2,7 @@
 
 test_description='git grep with a binary pattern files'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./lib-gettext.sh
 
 nul_match_internal () {
-- 
2.33.0.1441.gbbcdb4c3c66
Previous: Ævar Arnfjörð BjarmasonNext: Elijah Newren
Message 14 of 27 in “leak tests: mark more tests as passing”
  1. 00/10 leak tests: mark more tests as passingÆvar Arnfjörð Bjarmason, Oct 6, 2021
  2. 01/10 leak tests: run various built-in tests in t00*.sh SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  3. Junio C HamanoOct 7, 2021
  4. 02/10 leak tests: run various "test-tool" tests in t00*.sh SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  5. 03/10 leak tests: mark t0000-init.sh as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  6. Junio C HamanoOct 7, 2021
  7. Ævar Arnfjörð BjarmasonOct 12, 2021
  8. 04/10 leak tests: mark all ls-tree tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  9. 05/10 leak tests: mark all trace2 tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  10. 07/10 leak tests: mark some ls-files tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  11. 06/10 leak tests: mark all checkout-index tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  12. 09/10 leak tests: mark various "generic" tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  13. 08/10 leak tests: mark some read-tree tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  14. 10/10 leak tests: mark some misc tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 6, 2021
  15. Elijah NewrenOct 6, 2021
  16. Junio C HamanoOct 7, 2021
  17. Ævar Arnfjörð BjarmasonOct 12, 2021
  18. 0/9 leak tests: mark more tests as passingÆvar Arnfjörð Bjarmason, Oct 12, 2021
  19. 1/9 leak tests: run various built-in tests in t00*.sh SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 12, 2021
  20. 2/9 leak tests: run various "test-tool" tests in t00*.sh SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 12, 2021
  21. 3/9 leak tests: mark all ls-tree tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 12, 2021
  22. 4/9 leak tests: mark all trace2 tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 12, 2021
  23. 5/9 leak tests: mark all checkout-index tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 12, 2021
  24. 6/9 leak tests: mark some ls-files tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 12, 2021
  25. 7/9 leak tests: mark some read-tree tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 12, 2021
  26. 8/9 leak tests: mark various "generic" tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 12, 2021
  27. 9/9 leak tests: mark some misc tests as passing with SANITIZE=leakÆvar Arnfjörð Bjarmason, Oct 12, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.