summaryrefslogtreecommitdiffstats
path: root/test/T360-symbol-hiding.sh
diff options
context:
space:
mode:
authorTomi Ollila <tomi.ollila@iki.fi>2016-05-26 00:37:40 +0300
committerDavid Bremner <david@tethera.net>2016-06-11 13:11:49 -0300
commitf0e5317bcdc856739c5107705e3bc86b31b01d38 (patch)
tree334013c5e65a378c207c18c827ee7b2fa8099186 /test/T360-symbol-hiding.sh
parent65c219560f33d41f094a204c631fb5aa0ff3395e (diff)
test: set LD_LIBRARY_PATH early and keep its old contents
Previously LD_LIBRARY_PATH was exported (and environment changed) in the middle of test case execution, when a function setting it was called. Previously the old contents of LD_LIBRARY_PATH was lost (if any) when it was re-set and exported. In some systems the old contents of LD_LIBRARY_PATH was needed to e.g. locate suitable gmime library.
Diffstat (limited to 'test/T360-symbol-hiding.sh')
-rwxr-xr-xtest/T360-symbol-hiding.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/T360-symbol-hiding.sh b/test/T360-symbol-hiding.sh
index e681d5b3..b3dbb1b5 100755
--- a/test/T360-symbol-hiding.sh
+++ b/test/T360-symbol-hiding.sh
@@ -13,9 +13,8 @@ test_description='exception symbol hiding'
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 -e "s,\`,\',g" -e "s,${NOTMUCH_DEFAULT_XAPIAN_BACKEND},backend,g") > OUTPUT
+$TEST_DIRECTORY/symbol-test ${PWD}/fakedb ${PWD}/nonexistent 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'