We generate output to stderr for BROKEN tests, which are not failures, so tell the test runner not to fail because of output on stderr. --- debian/tests/control | 13 +++++++++++++ test/T800-asan.sh | 8 ++++++-- test/defaults.sh | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 debian/tests/control diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 00000000..c8dc9ff7 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,13 @@ +Test-command: env NOTMUCH_TEST_INSTALLED=yes TERM=dumb ./test/notmuch-test +Restrictions: allow-stderr +Depends: @, + build-essential, + dtach, + emacs-nox, + gdb, + git, + gnupg, + gpgsm, + libtalloc-dev, + man, + xapian-tools diff --git a/test/T800-asan.sh b/test/T800-asan.sh index 1ddff0fe..658b88f3 100755 --- a/test/T800-asan.sh +++ b/test/T800-asan.sh @@ -2,17 +2,21 @@ 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" -ne 1 ]; then printf "Skipping due to missing ASAN support\n" test_done fi +if [ -n "$LD_PRELOAD" ]; then + printf "Skipping due to non-empty LD_PRELOAD\n" + test_done +fi + add_email_corpus TEST_CFLAGS="-fsanitize=address" test_begin_subtest "open and destroy" -test_subtest_broken_for_installed test_C ${MAIL_DIR} ${NOTMUCH_CONFIG} <<EOF #include <notmuch.h> #include <stdio.h> diff --git a/test/defaults.sh b/test/defaults.sh index 6327e43b..ee4ded83 100644 --- a/test/defaults.sh +++ b/test/defaults.sh @@ -2,4 +2,4 @@ NOTMUCH_PYTHON=${NOTMUCH_PYTHON-python3} NOTMUCH_HAVE_MAN=${NOTMUCH_HAVE_MAN-1} NOTMUCH_HAVE_SFSEXP=${NOTMUCH_HAVE_SFSEXP-1} -NOTMUCH_HAVE_ASAN=${NOTMUCH_HAVE_ASAN-0} +NOTMUCH_HAVE_ASAN=${NOTMUCH_HAVE_ASAN-1} -- 2.39.0 _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org