From 347f39d73e2ab541b61d6e95b7feeebc6a1a453a Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Fri, 30 Dec 2011 18:12:45 +0200 Subject: [PATCH] test/symbol-hiding: prepend new directory to LD_LIBRARY_PATH Tester may have set LD_LIBRARY_PATH to find libraries required by notmuch. Therefore add $TEST_DIRECTORY/../lib to the beginning of current list of library paths in $LD_LIBRARY_PATH before running symbol-test. --- test/symbol-hiding | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/symbol-hiding b/test/symbol-hiding index 68f0d1b1..7fa7b2aa 100755 --- a/test/symbol-hiding +++ b/test/symbol-hiding @@ -12,7 +12,7 @@ test_description='exception symbol hiding' . ./test-lib.sh run_test(){ - result=$(LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib $TEST_DIRECTORY/symbol-test 2>&1) + result=$(LD_LIBRARY_PATH="$TEST_DIRECTORY/../lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $TEST_DIRECTORY/symbol-test 2>&1) } output="A Xapian exception occurred opening database: Couldn't stat 'fakedb/.notmuch/xapian' -- 2.43.0