X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT150-tagging.sh;h=4a2673d442b17379f8d18f4950f325a5247c7ea9;hb=ee1f573204f87a0b2c20a193abf5c4d71e91f049;hp=45471ac8de72962937761873c81b1f6bcb229609;hpb=bbbdf0478ea6109afc1ca5a26a8d1cd86b600e2a;p=notmuch diff --git a/test/T150-tagging.sh b/test/T150-tagging.sh index 45471ac8..4a2673d4 100755 --- a/test/T150-tagging.sh +++ b/test/T150-tagging.sh @@ -261,4 +261,10 @@ test_expect_code 1 "Empty tag names" 'notmuch tag + One' test_expect_code 1 "Tag name beginning with -" 'notmuch tag +- One' +test_begin_subtest "Xapian exception: read only files" +chmod u-w ${MAIL_DIR}/.notmuch/xapian/*.DB +output=$(notmuch tag +something '*' 2>&1 | sed 's/: .*$//' ) +chmod u+w ${MAIL_DIR}/.notmuch/xapian/*.DB +test_expect_equal "$output" "A Xapian exception occurred opening database" + test_done