X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT800-asan.sh;fp=test%2FT800-asan.sh;h=9ce6baa7c80b34e767bd8900f2f74c8498676818;hb=1129cf890ef812321ac8296a4ca964a796df0b87;hp=8607732e176b9978bd72622a6e5ddf8a255e6710;hpb=12aa05f07cb8aae736895c46fb25e0106daf207c;p=notmuch diff --git a/test/T800-asan.sh b/test/T800-asan.sh index 8607732e..9ce6baa7 100755 --- a/test/T800-asan.sh +++ b/test/T800-asan.sh @@ -2,14 +2,19 @@ test_description='run code with ASAN enabled against the library' . $(dirname "$0")/test-lib.sh || exit 1 -if [ $NOTMUCH_HAVE_ASAN -ne 1 ]; then +if [ "${NOTMUCH_HAVE_ASAN-0}" != "1" ]; then printf "Skipping due to missing ASAN support\n" test_done fi +if [ -n "${LD_PRELOAD-}" ]; then + printf "Skipping due to ASAN LD_PRELOAD restrictions\n" + test_done +fi + add_email_corpus -TEST_CFLAGS="-fsanitize=address" +TEST_CFLAGS="${TEST_CFLAGS:-} -fsanitize=address" test_begin_subtest "open and destroy" test_C ${MAIL_DIR} ${NOTMUCH_CONFIG} <