1
0
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:
Calvin Rose
2021-01-11 09:05:26 -06:00
parent 1f6d0d342b
commit 4df1ac5b23
2 changed files with 13 additions and 15 deletions

View File

@@ -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)