From: Junio C Hamano Date: Fri, 31 May 2024 15:01:01 GMT Subject: Re: [PATCH 0/13] leak fixes for sparse-checkout code Message-ID: In-Reply-To: <20240531114941.GA429026@coredump.intra.peff.net> Jeff King writes: > LSAN_OPTIONS=abort_on_error=0:exitcode=0 \ > GIT_TEST_SANITIZE_LEAK_LOG=true \ > ./$script > ) > for i in Indirect Direct; do > echo "$i: $(grep "^$i leak" t/test-results/${script%.sh}.leak/* | wc -l)" > done Neat trick. > It keeps running instead of aborting on leaks (otherwise your counts > may go up as "failing" programs are fixed and we run more code). And > instead just logs it all and counts up the log entries. Indeed. It is a very nice idea. > I wonder if it would be useful to have something like that baked into > test-lib. > > -Peff