~ chicken-core (chicken-5) a105a03133bbfee9764d604b9626b0d94b875d70


commit a105a03133bbfee9764d604b9626b0d94b875d70
Author:     Peter Bex <peter.bex@xs4all.nl>
AuthorDate: Thu Mar 20 20:49:34 2014 +0100
Commit:     Christian Kellermann <ckeen@pestilenz.org>
CommitDate: Mon Mar 24 11:21:22 2014 +0100

    Use rpath for test binaries to make install-less tests work always.
    
    This enforces usage of ../libchicken.so even if there's an older
    installation already living under $PREFIX (otherwise that would
    take precedence due to default rpath of $PREFIX/lib)
    
    Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>

diff --git a/tests/runtests.sh b/tests/runtests.sh
index 8d98cc27..b3570ded 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -52,7 +52,7 @@ CHICKEN_INSTALL=${TEST_DIR}/../chicken-install
 CHICKEN_UNINSTALL=${TEST_DIR}/../chicken-uninstall
 ASMFLAGS=
 FAST_OPTIONS="-O5 -d0 -b -disable-interrupts"
-COMPILE_OPTIONS="-compiler ${TEST_DIR}/../chicken -v -I${TEST_DIR}/.. -L${TEST_DIR}/.. -include-path ${TEST_DIR}/.."
+COMPILE_OPTIONS="-compiler ${TEST_DIR}/../chicken -v -I${TEST_DIR}/.. -L${TEST_DIR}/.. -rpath ${TEST_DIR}/.. -include-path ${TEST_DIR}/.."
 
 TEST_DIR_SEXPR=`../csi -n -include-path .. -e "(use posix) (write (current-directory))"`
 SETUP_PREFIX="-e (use files setup-api)"
Trap