git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] LSan quality of life improvements
@ 2024-09-24 21:34 Jeff King
  2024-09-24 21:35 ` [PATCH 1/3] test-lib: stop showing old leak logs Jeff King
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Jeff King @ 2024-09-24 21:34 UTC (permalink / raw)
  To: git; +Cc: Patrick Steinhardt

I was fixing some leaks the other day and came up with a few changes
that made the process a bit less painful, especially when the leaks are
hidden in sub-processes (which is most of them when you are digging into
http push/fetch, as I was).

I hope we're not too far off from a world where leaks are something that
pop up in your newly written code, and you're not slogging through
existing test scripts. But until then, I hope these might help others.

If you want to see the before/after, try:

  cd t
  ./t5550-http-fetch-dumb.sh -i

before and after this series. Before you get no leaks reported to stdout
with "-i", and way too many without it. After, you get the leaks for the
first test that generates them.

  [1/3]: test-lib: stop showing old leak logs
  [2/3]: test-lib: show leak-sanitizer logs on --immediate failure
  [3/3]: test-lib: check for leak logs after every test

 t/test-lib-functions.sh |  3 ++-
 t/test-lib.sh           | 41 ++++++-----------------------------------
 2 files changed, 8 insertions(+), 36 deletions(-)

-Peff

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-09-27  3:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24 21:34 [PATCH 0/3] LSan quality of life improvements Jeff King
2024-09-24 21:35 ` [PATCH 1/3] test-lib: stop showing old leak logs Jeff King
2024-09-26 14:19   ` Patrick Steinhardt
2024-09-24 21:36 ` [PATCH 2/3] test-lib: show leak-sanitizer logs on --immediate failure Jeff King
2024-09-26 14:19   ` Patrick Steinhardt
2024-09-24 21:38 ` [PATCH 3/3] test-lib: check for leak logs after every test Jeff King
2024-09-26 14:19   ` Patrick Steinhardt
2024-09-27  3:58     ` Jeff King
2024-09-26 14:19 ` [PATCH 0/3] LSan quality of life improvements Patrick Steinhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).