summaryrefslogtreecommitdiffstats
path: root/test/T360-symbol-hiding.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2016-04-08 22:49:50 -0300
committerDavid Bremner <david@tethera.net>2016-04-12 20:21:09 -0300
commite311aad182326a1dcb0f8512e10b0e0f0faa9e2c (patch)
treed6c24d5eef7911598f978e1e07158f16fd2fe0b3 /test/T360-symbol-hiding.sh
parentdeb4e5567c42afe834d83868b9337277256a0d66 (diff)
test: cope with glass backend file naming variations
In several places in the test suite we intentionally corrupt the Xapian database in order to test error handling. This corruption is specific to the on-disk organization of the database, and that changed with the glass backend. We use the previously computed default backend to make the tests adapt to changing names.
Diffstat (limited to 'test/T360-symbol-hiding.sh')
-rwxr-xr-xtest/T360-symbol-hiding.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/T360-symbol-hiding.sh b/test/T360-symbol-hiding.sh
index 89e7f165..3f18ec1a 100755
--- a/test/T360-symbol-hiding.sh
+++ b/test/T360-symbol-hiding.sh
@@ -15,11 +15,11 @@ test_begin_subtest 'running test' run_test
mkdir -p ${PWD}/fakedb/.notmuch
( LD_LIBRARY_PATH="$TEST_DIRECTORY/../lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \
$TEST_DIRECTORY/symbol-test ${PWD}/fakedb ${PWD}/nonexistent \
- 2>&1 | notmuch_dir_sanitize | sed "s,\`,\',g") > OUTPUT
+ 2>&1 | notmuch_dir_sanitize | sed -e "s,\`,\',g" -e "s,${NOTMUCH_DEFAULT_XAPIAN_BACKEND},backend,g") > OUTPUT
cat <<EOF > EXPECTED
A Xapian exception occurred opening database: Couldn't stat 'CWD/fakedb/.notmuch/xapian'
-caught No chert database found at path 'CWD/nonexistent'
+caught No backend database found at path 'CWD/nonexistent'
EOF
test_expect_equal_file EXPECTED OUTPUT