] [ process>> . ] bi ;
: wait-for-success ( process -- )
- dup wait-for-process [ drop ] [ process-failed ] if-zero ;
+ dup wait-for-process 0 = [ drop ] [ process-failed ] if ;
: try-process ( desc -- )
run-process wait-for-success ;
environment eval hashtables io io.directories\r
io.encodings.ascii io.files io.files.temp io.launcher\r
io.launcher.windows io.pathnames kernel math namespaces parser\r
-sequences splitting system tools.test ;\r
+sequences splitting system tools.test combinators.short-circuit ;\r
IN: io.launcher.windows.tests\r
\r
[ "hello world" ] [ { "hello" "world" } join-arguments ] unit-test\r
"vocab:io/launcher/windows/test/input.txt" >>stdin\r
try-process\r
] unit-test\r
+\r
+! Regression\r
+[ "asdfdontexistplzplz" >process wait-for-success ]\r
+[\r
+ {\r
+ [ process-failed? ]\r
+ [ process>> process? ]\r
+ [ process>> command>> "asdfdontexistplzplz" = ]\r
+ [ process>> status>> f = ]\r
+ } 1&&\r
+] must-fail-with
\ No newline at end of file