Jeff King <peff@xxxxxxxx> 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