~ chicken-core (chicken-5) 0551c95cc036185e3c59b9d02ed4c2524d8c07a4


commit 0551c95cc036185e3c59b9d02ed4c2524d8c07a4
Author:     Peter Bex <peter@more-magic.net>
AuthorDate: Thu Jun 20 08:53:35 2024 +0200
Commit:     felix <felix@call-with-current-continuation.org>
CommitDate: Sun Jun 23 12:23:09 2024 +0200

    Disable test-create-temporary-file on Windows
    
    This test fails due to the fact that "unsetenv" doesn't work like it
    does on UNIX - you can only clear out an environment variable but you
    can't fully unset it, and this test relies on being able to completely
    erase variables from the environment.
    
    While at it, fix the now commented-out test in the batch file to be
    correct - the invocation was using UNIX style variable expansion and
    didn't check its error status.  Presumably the incorrect variable
    expansion would fail with a message but not stop the test due to the
    missing errorlevel check.
    
    Signed-off-by: felix <felix@call-with-current-continuation.org>

diff --git a/tests/runtests.bat b/tests/runtests.bat
index 6f98aa37..a0b88918 100644
--- a/tests/runtests.bat
+++ b/tests/runtests.bat
@@ -587,8 +587,9 @@ echo ======================================== find-files tests ...
 if errorlevel 1 exit /b 1
 
 echo ======================================== create-temporary-file tests ...
-$interpret -bnq test-create-temporary-file.scm
-
+echo == SKIPPED due to problematic unsetenv behaviour on Windows ==
+@rem %interpret% -bnq test-create-temporary-file.scm
+@rem if errorlevel 1 exit /b 1
 
 echo ======================================== record-renaming tests ...
 %interpret% -bnq record-rename-test.scm
diff --git a/tests/runtests.sh b/tests/runtests.sh
index 185db284..9571db19 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -434,7 +434,11 @@ echo "======================================== find-files tests ..."
 $interpret -bnq test-find-files.scm
 
 echo "======================================== create-temporary-file tests ..."
-$interpret -bnq test-create-temporary-file.scm
+if test -z "$MSYSTEM"; then
+  echo "== SKIPPED due to problematic unsetenv behaviour on Windows =="
+else
+  $interpret -bnq test-create-temporary-file.scm
+fi
 
 echo "======================================== record-renaming tests ..."
 $interpret -bnq record-rename-test.scm
Trap