Idris2/tests/allbackends/popen2/run
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

9 lines
237 B
Plaintext

. ../../testutils.sh
run Test.idr
echo "------"
idris2 --exec main2 Test.idr
echo "------"
idris2 --exec main3 Test.idr | sed 's/^"//' | sed 's/" *$//'
# filtering above is to level differences in quotes echoing by Windows and the rest