aboutsummaryrefslogtreecommitdiff
path: root/test/test-lib.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/test-lib.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/test-lib.sh')
-rw-r--r--test/test-lib.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 4a8ef1f4..b0ee253c 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -1192,7 +1192,6 @@ test_emacs () {
}
test_python() {
- export LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib
export PYTHONPATH=$TEST_DIRECTORY/../bindings/python
(echo "import sys; _orig_stdout=sys.stdout; sys.stdout=open('OUTPUT', 'w')"; cat) \
@@ -1200,7 +1199,6 @@ test_python() {
}
test_ruby() {
- export LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib
MAIL_DIR=$MAIL_DIR ruby -I $TEST_DIRECTORY/../bindings/ruby> OUTPUT
}
@@ -1208,7 +1206,6 @@ test_C () {
exec_file="test${test_count}"
test_file="${exec_file}.c"
cat > ${test_file}
- export LD_LIBRARY_PATH=${TEST_DIRECTORY}/../lib
${TEST_CC} ${TEST_CFLAGS} -I${TEST_DIRECTORY}/../lib -o ${exec_file} ${test_file} -L${TEST_DIRECTORY}/../lib/ -lnotmuch -ltalloc
echo "== stdout ==" > OUTPUT.stdout
echo "== stderr ==" > OUTPUT.stderr