/avar/tests-post-sanitize-leak-test-mode-trivial-leaks-with-tests/0000-cover-letter.patch

https://github.com/avar/git-patches · Patch · 65 lines · 56 code · 9 blank · 0 comment · 0 complexity · 4cba4670a1f2080cf18c12f320ac2a00 MD5 · raw file

  1. From d7c94fa2851272076443989590771c1c95b51e2c Mon Sep 17 00:00:00 2001
  2. Message-Id: <cover-0.7-00000000000-20211006T095426Z-avarab@gmail.com>
  3. From: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
  4. Date: Wed, 6 Oct 2021 11:54:26 +0200
  5. Subject: [PATCH 0/7] leak tests: fix "test-tool" & other small leaks
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Like my just-submitted series to mark existing tests as passing[1]
  10. under the test mode added in ab/sanitize-leak-ci, this marks more
  11. tests as passing, but here we need to fix some small memory
  12. leaks. This goes on top of ab/sanitize-leak-ci.
  13. Like [1] I merged each of these with "seen" and tested them with
  14. GIT_TEST_PASSING_SANITIZE_LEAK=true, so they should hopefully not be a
  15. hassle while cooking. This doesn't inter-depend on any other topic I
  16. have except ab/sanitize-leak-ci.
  17. But with the outstanding topics I've got in this area (+ [2] + [3] +
  18. [4]) and Elijah's en/removing-untracked-fixes these topics in
  19. combination will get us to a spot where we can start fixing the big blocking memory leaks in the test suite.
  20. I.e. most tests fail because "git log" and "git checkout" leak when
  21. doing almost anything. I've got patches on top of this which fix both
  22. of those for 80-90% of cases. After that most failing tests will have
  23. failures because of things specific to those tests, not just because
  24. their setup code dies as they use "git checkout" or "git log" to set
  25. something up.
  26. 1. https://lore.kernel.org/git/cover-00.10-00000000000-20211006T094705Z-avarab@gmail.com/
  27. 2. https://lore.kernel.org/git/cover-0.2-00000000000-20211006T093405Z-avarab@gmail.com
  28. 3. https://lore.kernel.org/git/cover-v4-0.5-00000000000-20211002T201434Z-avarab@gmail.com/
  29. 4. https://lore.kernel.org/git/cover-v2-0.5-00000000000-20210927T124407Z-avarab@gmail.com/#t
  30. Ævar Arnfjörð Bjarmason (7):
  31. tests: fix a memory leak in test-prio-queue.c
  32. tests: fix a memory leak in test-parse-options.c
  33. tests: fix a memory leak in test-oidtree.c
  34. tests: fix test-oid-array leak, test in SANITIZE=leak
  35. ls-files: fix a trivial dir_clear() leak
  36. ls-files: add missing string_list_clear()
  37. merge: add missing strbuf_release()
  38. builtin/ls-files.c | 14 ++++++--------
  39. builtin/merge.c | 2 ++
  40. t/helper/test-oid-array.c | 4 ++++
  41. t/helper/test-oidtree.c | 3 +++
  42. t/helper/test-parse-options.c | 7 ++++++-
  43. t/helper/test-prio-queue.c | 2 ++
  44. t/t0009-prio-queue.sh | 2 ++
  45. t/t0040-parse-options.sh | 1 +
  46. t/t0064-oid-array.sh | 2 ++
  47. t/t0069-oidtree.sh | 1 +
  48. t/t3001-ls-files-others-exclude.sh | 5 +++--
  49. t/t3005-ls-files-relative.sh | 1 +
  50. t/t3020-ls-files-error-unmatch.sh | 2 ++
  51. t/t3700-add.sh | 1 +
  52. t/t7104-reset-hard.sh | 1 +
  53. t/t7604-merge-custom-message.sh | 1 +
  54. 16 files changed, 38 insertions(+), 11 deletions(-)
  55. --
  56. 2.33.0.1441.gbbcdb4c3c66