Idris2/tests/allbackends/popen2/expected
Denis Buzdalov b495fe83f0 [ fix ] Support waiting for popen2-created processes
This fixes problem of creation the garbage of zombie processes on POSIX
systems. This also makes behaviour of `popen2` identical in Windows,
namely, all resources are freed only when waiting, giving at the same
time an ability to observe the exit code afterwards.
2023-12-19 23:03:31 +03:00

34 lines
758 B
Plaintext

main thread: before all
True
main thread: before closing subinput
main thread: before reading suboutput
main thread: before printing suboutput
Hello, Idris!
main thread: before waiting subprocess
subprocess exit code: 0
main thread: after all
------
main thread: before all
True
main thread: before closing subinput
main thread: before reading suboutput
main thread: before printing suboutput
Hello, Idris!
main thread: before waiting subprocess
subprocess exit code: 4
main thread: after all
------
main thread: before all
True
main thread: before closing subinput
main thread: before reading suboutput
main thread: before printing suboutput
Hello, Idris!
Two spaces
main thread: before waiting subprocess
subprocess exit code: 4
main thread: after all