diff options
author | Jeff King <peff@peff.net> | 2017-09-05 09:04:04 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-06 18:06:26 +0900 |
commit | 85b81b35ff90046e5ab73808785706245a778520 (patch) | |
tree | eb6b87e8385c4013fab714f55a09b58f070f86f2 /t/t4013/diff.log_-SF_master_--max-count=2 | |
parent | test-lib: --valgrind should not override --verbose-log (diff) | |
download | tgif-85b81b35ff90046e5ab73808785706245a778520.tar.xz |
test-lib: set LSAN_OPTIONS to abort by default
We already set ASAN_OPTIONS to abort if it finds any errors.
As we start to experiment with LSAN, the leak sanitizer,
it's convenient if we give it the same treatment.
Note that ASAN is actually a superset of LSAN and can do the
leak detection itself. So this only has an effect if you
specifically build with "make SANITIZE=leak" (leak detection
but not the rest of ASAN). Building with just LSAN results
in a build that runs much faster. That makes the
build-test-fix cycle more pleasant.
In the long run, once we've fixed or suppressed all the
leaks, it will probably be worth turning leak-detection on
for ASAN and just using that (to check both leaks _and_
memory errors in a single test run). But there's still a lot
of work before we get there.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.log_-SF_master_--max-count=2')
0 files changed, 0 insertions, 0 deletions