try-process
] unit-test
+: launcher-test-path ( -- str )
+ "resource:basis/io/launcher/windows/nt/test" ;
+
[ ] [
- "resource:basis/io/windows/nt/launcher/test" [
+ launcher-test-path [
<process>
vm "-script" "stderr.factor" 3array >>command
"out.txt" temp-file >>stdout
] unit-test
[ ] [
- "resource:basis/io/windows/nt/launcher/test" [
+ launcher-test-path [
<process>
vm "-script" "stderr.factor" 3array >>command
"out.txt" temp-file >>stdout
] unit-test
[ "output" ] [
- "resource:basis/io/windows/nt/launcher/test" [
+ launcher-test-path [
<process>
vm "-script" "stderr.factor" 3array >>command
"err2.txt" temp-file >>stderr
] unit-test
[ t ] [
- "resource:basis/io/windows/nt/launcher/test" [
+ launcher-test-path [
<process>
vm "-script" "env.factor" 3array >>command
ascii <process-reader> contents
] unit-test
[ t ] [
- "resource:basis/io/windows/nt/launcher/test" [
+ launcher-test-path [
<process>
vm "-script" "env.factor" 3array >>command
+replace-environment+ >>environment-mode
] unit-test
[ "B" ] [
- "resource:basis/io/windows/nt/launcher/test" [
+ launcher-test-path [
<process>
vm "-script" "env.factor" 3array >>command
{ { "A" "B" } } >>environment
] unit-test
[ f ] [
- "resource:basis/io/windows/nt/launcher/test" [
+ launcher-test-path [
<process>
vm "-script" "env.factor" 3array >>command
{ { "USERPROFILE" "XXX" } } >>environment
[ "Hello appender\r\nHello appender\r\n" ] [
2 [
- "resource:basis/io/windows/nt/launcher/test" [
+ launcher-test-path [
<process>
vm "-script" "append.factor" 3array >>command
"append-test" temp-file <appender> >>stdout