X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT620-lock.sh;h=8f4c380f110891f402038927d5c5e37c872b3dc5;hb=2d036dbc3b6e48b12ab3e8aa0cbe713d2ef96854;hp=f46475e8ddccf6dc1926b7cf198da3d088592194;hpb=07dff496304d6dc2e8033a18691b095ed9cd212f;p=notmuch diff --git a/test/T620-lock.sh b/test/T620-lock.sh index f46475e8..8f4c380f 100755 --- a/test/T620-lock.sh +++ b/test/T620-lock.sh @@ -1,18 +1,14 @@ #!/usr/bin/env bash test_description="locking" -. ./test-lib.sh || exit 1 - -if [ "${NOTMUCH_HAVE_XAPIAN_DB_RETRY_LOCK}" = "0" ]; then - test_subtest_missing_external_prereq_["lock retry support"]=t -fi +. $(dirname "$0")/test-lib.sh || exit 1 add_email_corpus test_begin_subtest "blocking open" +if [ $NOTMUCH_HAVE_XAPIAN_DB_RETRY_LOCK -ne 1 ]; then + test_subtest_known_broken +fi test_C ${MAIL_DIR} <<'EOF' -#include -#include -#include #include void @@ -70,6 +66,9 @@ inbox parent unread EOF +if [ $NOTMUCH_HAVE_XAPIAN_DB_RETRY_LOCK -ne 1 ]; then + test_subtest_known_broken +fi test_expect_equal_file EXPECTED OUTPUT test_done