mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
test: retrying lock tests are broken when built against older Xapian
If we're building against a version of Xapian that doesn't offer retrying the lock, we should be honest and describe the tests as broken, rather than marking them as missing a test prerequisite. missing test prerequisites should be for specific components of the test harness that are missing, not for the backend library notmuch uses.
This commit is contained in:
parent
bace15c275
commit
8e1c3fa5bb
1 changed files with 6 additions and 4 deletions
|
@ -2,13 +2,12 @@
|
||||||
test_description="locking"
|
test_description="locking"
|
||||||
. $(dirname "$0")/test-lib.sh || exit 1
|
. $(dirname "$0")/test-lib.sh || exit 1
|
||||||
|
|
||||||
if [ "${NOTMUCH_HAVE_XAPIAN_DB_RETRY_LOCK}" = "0" ]; then
|
|
||||||
test_subtest_missing_external_prereq_["lock retry support"]=t
|
|
||||||
fi
|
|
||||||
|
|
||||||
add_email_corpus
|
add_email_corpus
|
||||||
|
|
||||||
test_begin_subtest "blocking open"
|
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'
|
test_C ${MAIL_DIR} <<'EOF'
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -70,6 +69,9 @@ inbox
|
||||||
parent
|
parent
|
||||||
unread
|
unread
|
||||||
EOF
|
EOF
|
||||||
|
if [ $NOTMUCH_HAVE_XAPIAN_DB_RETRY_LOCK -ne 1 ]; then
|
||||||
|
test_subtest_known_broken
|
||||||
|
fi
|
||||||
test_expect_equal_file EXPECTED OUTPUT
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|
Loading…
Reference in a new issue