Skip to content

LSan quality of life improvements

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3test-lib: stop showing old leak logst/test-lib.sh+2 -331 reply
2/3test-lib: show leak-sanitizer logs on --immediate failuret/test-lib.sh+1 -01 reply
3/3test-lib: check for leak logs after every testt/test-lib-functions.sh t/test-lib.sh+8 -62 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] LSan quality of life improvements

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