1
0
mirror of https://github.com/janet-lang/janet synced 2026-05-27 07:42:19 +00:00

Update exceptions for os/execute with empty env test.

This commit is contained in:
Calvin Rose
2026-03-02 19:24:12 -06:00
parent 37a2677ecb
commit 7d388f267a
+4 -5
View File
@@ -148,11 +148,10 @@
# os/execute with empty environment
# pr #1686
# native MinGW can't find system DLLs without PATH and so fails
(assert (= (if (and (= :mingw (os/which))
(nil? (os/stat "C:\\windows\\system32\\wineboot.exe")))
-1073741515 0)
(os/execute [;run janet "-e" "(+ 1 2 3)"] :pe {}))
# native MinGW can't find system DLLs without PATH, SystemRoot, etc. and so fails
# Also fails for address sanitizer builds on windows.
(def result (os/execute [;run janet "-e" "(+ 1 2 3)"] :pe {}))
(assert (or (= result -1073741515) (= result 0))
"os/execute with minimal env")
# os/execute regressions