~ chicken-core (chicken-5) a2e1c099ba3243d93d29fcee43dae4e350d12583


commit a2e1c099ba3243d93d29fcee43dae4e350d12583
Author:     Evan Hanson <evhan@foldling.org>
AuthorDate: Fri Aug 24 13:31:18 2018 +1200
Commit:     Evan Hanson <evhan@foldling.org>
CommitDate: Sat Aug 25 05:25:56 2018 +1200

    Use env(1) to unset CHICKEN_REPOSITORY_PATH in repository search path test
    
    On MSYS, the output of `export -p` includes noise like "declare -x !::"
    which prevents the saved output from being sourced. Since other
    platforms might exhibit similar oddities and we're only saving and
    restoring the environment to clear a single environment variable, it's
    easier to use env(1) to unset CHICKEN_REPOSITORY_PATH temporarily.

diff --git a/tests/runtests.sh b/tests/runtests.sh
index dcfce65e..057df7c8 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -63,10 +63,7 @@ mkdir -p test-repository
 cp $TYPESDB test-repository/types.db
 
 echo "======================================== repository search path ..."
-export -p >./env.out
-unset CHICKEN_REPOSITORY_PATH
-$interpret -s repository-path-default.scm
-. ./env.out
+env -u CHICKEN_REPOSITORY_PATH $interpret -s repository-path-default.scm
 $compile_s sample-module.scm -j sample-module
 cp sample-module.so $CHICKEN_INSTALL_REPOSITORY
 cp sample-module.import.scm $CHICKEN_INSTALL_REPOSITORY
Trap