]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib.sh
test-lib: turn on ASan abort_on_error by default
authorJeff King <peff@peff.net>
Mon, 10 Jul 2017 13:24:39 +0000 (09:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jul 2017 17:02:28 +0000 (10:02 -0700)
commitbf1ce904b753b76ac3e20dde68777ce4625b60ed
tree7f3efa8c2a432d9964101aada050b6d25693fc6a
parentd0cc5796f35941d5a6ccd05146911f102bed57c4
test-lib: turn on ASan abort_on_error by default

By default, ASan will exit with code 1 when it sees an
error. This means we'll notice a problem when we expected
git to succeed, but not in a test_must_fail block.

Let's ask it to actually raise SIGABRT instead. That will
give us a signal death that test_must_fail will notice. As a
bonus, it may also leave a coredump, which can be handy for
digging into a failure.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh