pkg test harness: fix race condition in I/O handling
This commit is contained in:
parent
bada20a57f
commit
66131b3898
|
@ -86,11 +86,11 @@
|
|||
(loop)))))))
|
||||
(to-proc 'wait)
|
||||
(define cmd-status (to-proc 'exit-code))
|
||||
(when stdout (close-input-port stdout))
|
||||
(when stderr (close-input-port stderr))
|
||||
(when stdin (close-output-port stdin))
|
||||
(thread-wait stdout-t)
|
||||
(thread-wait stderr-t)
|
||||
(when stdout (close-input-port stdout))
|
||||
(when stderr (close-input-port stderr))
|
||||
(define actual-output
|
||||
(get-output-string output-port))
|
||||
(define actual-error
|
||||
|
|
Loading…
Reference in New Issue
Block a user