mirror of
https://github.com/janet-lang/janet
synced 2026-10-09 09:11:40 +00:00
Arm cross compilation CI fix attempt.
Perhaps initial process launch succeeds?
This commit is contained in:
+3
-1
@@ -644,7 +644,9 @@
|
||||
# os/spawn and os/execute when program does not exist gives a normal error
|
||||
(def dne-path "this-long-binary-name-does-not-exist")
|
||||
(assert (nil? (os/stat dne-path :mode)) "binary path does not exist 1")
|
||||
(assert (let [[ok _result] (protect (os/spawn [dne-path] :px))] (not ok)) "binary path does not exist 2 - os/spawn")
|
||||
# On some systems, the intial process may launch but should immediately fail. Other systems will refuse to launch a process.
|
||||
(assert (let [[ok _result] (protect (let [p (os/spawn [dne-path] :p)] (assert (zero? (:wait p)))))] (not ok))
|
||||
"binary path does not exist 2 - os/spawn")
|
||||
(assert (let [[ok _result] (protect (os/execute [dne-path] :px))] (not ok)) "binary path does not exist 2 - os/execute")
|
||||
|
||||
(end-suite)
|
||||
|
||||
Reference in New Issue
Block a user