1
0
mirror of https://github.com/janet-lang/janet synced 2026-03-08 00:39:49 +00:00

Exclude MinGW on WINE from special case

This commit is contained in:
Michael Camilleri
2025-12-15 12:04:14 +09:00
parent 1e73fa7ec7
commit 7810724ed2

View File

@@ -145,7 +145,10 @@
# os/execute with empty environment
# pr #1686
(assert (= (if (= :mingw (os/which)) -1073741515 0) # MinGW can't find DLLs
# 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 {}))
"os/execute with minimal env")