IN: io.unix.launcher.tests USING: io.files tools.test io.launcher arrays io namespaces continuations math io.encodings.binary io.encodings.ascii accessors kernel sequences ; [ ] [ [ "launcher-test-1" temp-file delete-file ] ignore-errors ] unit-test [ ] [ "touch" "launcher-test-1" temp-file 2array try-process ] unit-test [ t ] [ "launcher-test-1" temp-file exists? ] unit-test [ ] [ [ "launcher-test-1" temp-file delete-file ] ignore-errors ] unit-test [ ] [ "echo Hello" >>command "launcher-test-1" temp-file >>stdout try-process ] unit-test [ "Hello\n" ] [ "cat" "launcher-test-1" temp-file 2array ascii contents ] unit-test [ f ] [ "cat" "launcher-test-1" temp-file 2array >>command +inherit+ >>stdout ascii contents ] unit-test [ ] [ [ "launcher-test-1" temp-file delete-file ] ignore-errors ] unit-test [ ] [ "cat" >>command +closed+ >>stdin "launcher-test-1" temp-file >>stdout try-process ] unit-test [ f ] [ "cat" "launcher-test-1" temp-file 2array ascii contents ] unit-test [ ] [ 2 [ "launcher-test-1" temp-file binary [ swap >>stdout "echo Hello" >>command try-process ] with-disposal ] times ] unit-test [ "Hello\nHello\n" ] [ "cat" "launcher-test-1" temp-file 2array ascii contents ] unit-test [ t ] [ "env" >>command { { "A" "B" } } >>environment ascii lines "A=B" swap member? ] unit-test [ { "A=B" } ] [ "env" >>command { { "A" "B" } } >>environment +replace-environment+ >>environment-mode ascii lines ] unit-test