diff options
| author | David Bremner <david@tethera.net> | 2015-03-14 08:32:22 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-03-15 20:27:20 +0100 |
| commit | baf93369f6a204bc16740358a56af95cbaa1f9b5 (patch) | |
| tree | 350d0e2673ab279df76a1115c37450ecbd04f284 /test/T050-new.sh | |
| parent | bed8b6743d1cfffe8193c6b3571ef460b92e4ade (diff) | |
test: Add two tests for error output from notmuch_database_open
This is arguably testing the same thing twice, but in the brave new
future where we don't use printf anymore, each subcommand will be
responsible for handling the output on it's own.
Diffstat (limited to 'test/T050-new.sh')
| -rwxr-xr-x | test/T050-new.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
