summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2017-12-05 21:33:24 -0500
committerDavid Bremner <david@tethera.net>2017-12-19 07:14:13 -0400
commit8e1c3fa5bba1434077df2f5a81ed6588468f9eb9 (patch)
treed315a501caf403a1f5e1178ccd0886fe85e8b7b3
parentbace15c27578bc4d6f78272b4093000aaeede966 (diff)
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.
-rwxr-xr-xtest/T620-lock.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/T620-lock.sh b/test/T620-lock.sh
index 085ffe43..7aaaff2a 100755
--- a/test/T620-lock.sh
+++ b/test/T620-lock.sh
@@ -2,13 +2,12 @@
test_description="locking"
. $(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
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 <unistd.h>
#include <stdlib.h>
@@ -70,6 +69,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