IN: io.unix.launcher.tests
USING: io.files tools.test io.launcher arrays io namespaces
-continuations math io.encodings.ascii io.encodings.latin1
+continuations math io.encodings.binary io.encodings.ascii
accessors kernel sequences ;
[ ] [
ascii <process-stream> contents
] unit-test
- [ "" ] [
+ [ f ] [
<process>
"cat"
"launcher-test-1" temp-file
try-process
] unit-test
- [ "" ] [
+ [ f ] [
"cat"
"launcher-test-1" temp-file
2array
[ ] [
2 [
- "launcher-test-1" temp-file ascii <file-appender> [
+ "launcher-test-1" temp-file binary <file-appender> [
<process>
swap >>stdout
"echo Hello" >>command
<process>
"env" >>command
{ { "A" "B" } } >>environment
- latin1 <process-stream> lines
+ ascii <process-stream> lines
"A=B" swap member?
] unit-test
"env" >>command
{ { "A" "B" } } >>environment
+replace-environment+ >>environment-mode
- latin1 <process-stream> lines
+ ascii <process-stream> lines
] unit-test