From 41d0ace2fee3d4ab987274493b920730e548e5cb Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 23 Aug 2015 15:59:57 +0200 Subject: [PATCH] Use LD_LIBRARY_PATH to find the library to test --- tests/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests.sh b/tests/tests.sh index 9030c9d..11e8b5b 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -42,7 +42,7 @@ _run() echo -n "$test:" 1>&2 (echo echo "Testing: $test" "$@" - "$OBJDIR$test" "$@") 2>&1 + LD_LIBRARY_PATH="$OBJDIR../src" "$OBJDIR$test" "$@") 2>&1 res=$? if [ $res -ne 0 ]; then echo "Test: $test$sep$@: FAIL (error $res)"