~ chicken-core (chicken-5) 9839760eba9d5291ab0a9282d8834055964861eb


commit 9839760eba9d5291ab0a9282d8834055964861eb
Author:     Michele La Monaca <mikele.chicken@lamonaca.net>
AuthorDate: Tue May 6 13:17:57 2014 +0200
Commit:     Peter Bex <peter.bex@xs4all.nl>
CommitDate: Thu May 8 20:35:40 2014 +0200

    fix private repository tests for Solaris
    
    Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>
    Signed-off-by: Peter Bex <peter.bex@xs4all.nl>

diff --git a/tests/runtests.sh b/tests/runtests.sh
index d2ffe72c..5007f8a7 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -398,10 +398,11 @@ $compile -e embedded3.c embedded4.scm
 echo "======================================== private repository test ..."
 mkdir -p tmp
 $compile private-repository-test.scm -private-repository -o tmp/xxx
-tmp/xxx $PWD/tmp
-PATH=$PWD/tmp:$PATH xxx $PWD/tmp
+tmp/xxx ${TEST_DIR}/tmp
+# This MUST be `pwd`: ${PWD} is not portable, and ${TEST_DIR} breaks mingw-msys
+PATH=`pwd`/tmp:$PATH xxx ${TEST_DIR}/tmp
 # this may crash, if the PATH contains a non-matching libchicken.dll on Windows:
-#PATH=$PATH:$PWD/tmp xxx $PWD/tmp
+#PATH=$PATH:${TEST_DIR}/tmp xxx ${TEST_DIR}/tmp
 rm -fr rev-app rev-app-2 reverser/*.import.* reverser/*.so
 
 echo "======================================== reinstall tests"
Trap