X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT050-new.sh;h=e6c3291f786553c972e457cf5aeb749c1edca5e5;hb=2eb558fd9b369458c23b57b44281758bd17a5580;hp=7119356fc9fe1dc20d6a8d5f4be20f5117bb816a;hpb=c82a1745ac6fd83e025803a06711e913c86e6f47;p=notmuch diff --git a/test/T050-new.sh b/test/T050-new.sh index 7119356f..e6c3291f 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -276,4 +276,11 @@ test_expect_code 1 "Invalid tags set exit code" \ notmuch config set new.tags $OLDCONFIG + +test_begin_subtest "Xapian exception: read only files" +chmod u-w ${MAIL_DIR}/.notmuch/xapian/*.DB +output=$(NOTMUCH_NEW 2>&1 | sed 's/: .*$//' ) +chmod u+w ${MAIL_DIR}/.notmuch/xapian/*.DB +test_expect_equal "$output" "A Xapian exception occurred opening database" + test_done