X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT050-new.sh;h=e6c3291f786553c972e457cf5aeb749c1edca5e5;hp=7119356fc9fe1dc20d6a8d5f4be20f5117bb816a;hb=baf93369f6a204bc16740358a56af95cbaa1f9b5;hpb=bed8b6743d1cfffe8193c6b3571ef460b92e4ade 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