aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-02-07 12:54:45 -0400
committerDavid Bremner <david@tethera.net>2021-03-20 07:38:15 -0300
commit986056bdbcfea642a2d08f7ee257f7aaaed433b9 (patch)
tree12dc3eaf2e3cdfbe04c5b0738dab17bbb7de4c4f /test
parentaa59424812561f6d9e8c1d455d215349a90f676b (diff)
lib/open: Use check for existing database by trial opening
This is a bit heavyweight for now, but it will make more sense when we check multiple locations for the Xapian database.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T360-symbol-hiding.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/T360-symbol-hiding.sh b/test/T360-symbol-hiding.sh
index 729b9d72..642457bf 100755
--- a/test/T360-symbol-hiding.sh
+++ b/test/T360-symbol-hiding.sh
@@ -17,7 +17,7 @@ $TEST_DIRECTORY/symbol-test ${PWD}/fakedb ${PWD}/nonexistent 2>&1 \
| notmuch_dir_sanitize | sed -e "s,\`,\',g" -e "s,No [^[:space:]]* database,No XXXXXX database,g" > OUTPUT
cat <<EOF > EXPECTED
-A Xapian exception occurred opening database: Couldn't stat 'CWD/fakedb/.notmuch/xapian'
+Cannot open Xapian database at CWD/fakedb/.notmuch/xapian: Couldn't stat 'CWD/fakedb/.notmuch/xapian'
caught No XXXXXX database found at path 'CWD/nonexistent'
EOF
test_expect_equal_file EXPECTED OUTPUT