unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test/symbol-hiding: prepend new directory to LD_LIBRARY_PATH
@ 2011-12-30 16:12 Tomi Ollila
  2011-12-31 18:46 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Tomi Ollila @ 2011-12-30 16:12 UTC (permalink / raw)
  To: notmuch; +Cc: Tomi Ollila

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/symbol-hiding b/test/symbol-hiding
index 68f0d1b..7fa7b2a 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'
-- 
1.7.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] test/symbol-hiding: prepend new directory to LD_LIBRARY_PATH
  2011-12-30 16:12 [PATCH] test/symbol-hiding: prepend new directory to LD_LIBRARY_PATH Tomi Ollila
@ 2011-12-31 18:46 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2011-12-31 18:46 UTC (permalink / raw)
  To: Tomi Ollila, notmuch

On Fri, 30 Dec 2011 18:12:45 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:
> 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.

Hmm. People should just install things properly ;).

pushed.

d

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-31 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-30 16:12 [PATCH] test/symbol-hiding: prepend new directory to LD_LIBRARY_PATH Tomi Ollila
2011-12-31 18:46 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).