Commit bfa78754 authored by Camil Staps's avatar Camil Staps 🍃

Fix bug where stderr would not appear and application would freeze when the...

Fix bug where stderr would not appear and application would freeze when the stderr buffer is full and stdout is not being written to (in case of utterly broken tests)
parent c4443c4f
Pipeline #32373 passed with stage
in 1 minute and 24 seconds
......@@ -7,6 +7,7 @@ from Text import class Text(split), instance Text String
append :: !String !(String .e -> .e) !*ProcessOutput .e -> *(*ProcessOutput, .e)
append s f out env
| size s == 0 = (out, env)
# out & rest = out.rest +++ s
# lines = split "\n" out.rest
| length lines == 1 = (out, env)
......
......@@ -315,7 +315,7 @@ where
readPipes :: !*ProcessOutput !ProcessIO !*File !*World -> *(!MaybeOSError Bool, !*ProcessOutput, !*File, !*World)
readPipes output pio io w
# (out,w) = readPipeBlocking pio.stdOut w
# (out,w) = readPipeNonBlocking pio.stdOut w
# (err,w) = readPipeNonBlocking pio.stdErr w
| isError out || isError err
# oserr=:(err,msg) = case out of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment