]> Repositorios git - scryer-prolog.git/commitdiff
adjust/add tests
authorBennet Bleßmann <[email protected]>
Sat, 26 Jul 2025 21:59:58 +0000 (23:59 +0200)
committerBennet Bleßmann <[email protected]>
Fri, 1 Aug 2025 18:48:55 +0000 (20:48 +0200)
tests/scryer/cli/unix/process.md
tests/scryer/cli/windows/process.md

index 8a1aef0641008083d8f376f5878847d5d9bb9e2c..6bb174e42a5c96c577402e48dda6e38912933089 100644 (file)
@@ -2,3 +2,13 @@
 $ scryer-prolog -f --no-add-history -g 'use_module(library(process)), process_create("false", [], [process(P)]), process_wait(P, exit(1)), halt'
 
 ```
+
+```trycmd
+$  scryer-prolog -f --no-add-history -g 'use_module(library(process)), use_module(library(format)), process_create("sh", [], [process(P), stdout(null), stdin(pipe(S))]), format(S, "exit 1~n", []), process_wait(P, exit(1)), halt'
+
+```
+
+```trycmd
+$  scryer-prolog -f --no-add-history -g 'use_module(library(process)), process_create("sh", ["-c", "sleep 5"], [process(P), stdout(null)]), process_kill(P), process_wait(P, killed(9)), halt'
+
+```
\ No newline at end of file
index 2b3fdbf54c1ebd0ddf64e2d1056bbd82d2c79b70..da27656b698ea4c6cc952c15f622383de41f4c3f 100644 (file)
@@ -4,6 +4,6 @@ $ scryer-prolog -f --no-add-history -g 'use_module(library(process)), process_cr
 ```
 
 ```trycmd
-$  scryer-prolog -f --no-add-history -g 'use_module(library(process)), use_module(library(format)), process_create("cmd", [], [process(P), stdout(null), stdin(pipe(S))]), format(S, "exit 1~n", []), process_wait(P, Status), halt'
+$  scryer-prolog -f --no-add-history -g 'use_module(library(process)), use_module(library(format)), process_create("cmd", [], [process(P), stdout(null), stdin(pipe(S))]), format(S, "exit 1~n", []), process_wait(P, exit(1)), halt'
 
 ```
\ No newline at end of file