mirror of
https://github.com/janet-lang/janet
synced 2025-10-23 11:47:40 +00:00
Fix some issues in os.c to diagnose improve windows subprocess code.
This commit is contained in:
@@ -83,4 +83,9 @@
|
||||
|
||||
(assert-error "bad arity to ev/call" (ev/call inc 1 2 3))
|
||||
|
||||
# Subprocess
|
||||
(let [p (os/spawn [(dyn :executable) "-e" `(print "hello")`] :p {:out :pipe})]
|
||||
(assert (deep= @"hello\n" (:read (p :out) :all)) "capture stdout from os/spawn")
|
||||
(os/proc-wait p))
|
||||
|
||||
(end-suite)
|
||||
|
Reference in New Issue
Block a user