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

[PATCH v2 5/9] leak tests: mark all checkout-index tests as passing with SANITIZE=leak

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 12, 2021, 13:56 UTC
Message-ID
<patch-v2-5.9-39a0199d5c6-20211012T135343Z-avarab@gmail.com>
In-Reply-To
<cover-v2-0.9-00000000000-20211012T135343Z-avarab@gmail.com>

Mark some tests that match "*{checkout,switch}*" 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).

Unfortunately almost all of those tests fail when compiled with SANITIZE=leak, these only pass because they run "checkout-index", not the main "checkout" command.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 t/t2002-checkout-cache-u.sh             | 1 +
 t/t2003-checkout-cache-mkdir.sh         | 1 +
 t/t2004-checkout-cache-temp.sh          | 1 +
 t/t2005-checkout-index-symlinks.sh      | 1 +
 t/t2081-parallel-checkout-collisions.sh | 1 +
 5 files changed, 5 insertions(+)
diff --git a/t/t2002-checkout-cache-u.sh b/t/t2002-checkout-cache-u.sh
index 70361c806e1..fc95cf90485 100755
--- a/t/t2002-checkout-cache-u.sh
+++ b/t/t2002-checkout-cache-u.sh
@@ -8,6 +8,7 @@ test_description='git checkout-index -u test.
 With -u flag, git checkout-index internally runs the equivalent of
 git update-index --refresh on the checked out entry.'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success \
diff --git a/t/t2003-checkout-cache-mkdir.sh b/t/t2003-checkout-cache-mkdir.sh
index ff163cf6750..f0fd441d810 100755
--- a/t/t2003-checkout-cache-mkdir.sh
+++ b/t/t2003-checkout-cache-mkdir.sh
@@ -10,6 +10,7 @@ also verifies that such leading path may contain symlinks, unlike
 the GIT controlled paths.
 '
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
diff --git a/t/t2004-checkout-cache-temp.sh b/t/t2004-checkout-cache-temp.sh
index a9352b08a8b..9bb503a9757 100755
--- a/t/t2004-checkout-cache-temp.sh
+++ b/t/t2004-checkout-cache-temp.sh
@@ -8,6 +8,7 @@ test_description='git checkout-index --temp test.
 With --temp flag, git checkout-index writes to temporary merge files
 rather than the tracked path.'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
diff --git a/t/t2005-checkout-index-symlinks.sh b/t/t2005-checkout-index-symlinks.sh
index 9fa56104743..112682a45a1 100755
--- a/t/t2005-checkout-index-symlinks.sh
+++ b/t/t2005-checkout-index-symlinks.sh
@@ -8,6 +8,7 @@ test_description='git checkout-index on filesystem w/o symlinks test.
 This tests that git checkout-index creates a symbolic link as a plain
 file if core.symlinks is false.'
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success \
diff --git a/t/t2081-parallel-checkout-collisions.sh b/t/t2081-parallel-checkout-collisions.sh
index f6fcfc0c1e4..6acdb89d12b 100755
--- a/t/t2081-parallel-checkout-collisions.sh
+++ b/t/t2081-parallel-checkout-collisions.sh
@@ -11,6 +11,7 @@ The tests in this file exercise parallel checkout's collision detection code in
 both these mechanics.
 "
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-parallel-checkout.sh"
 
-- 
2.33.0.1567.g7b23ce7ed9e
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 23 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.