add another test and remove unecessary module qualification
This commit is contained in:
committed by
Bennet Bleßmann
parent
25edde2eb4
commit
70d65bcea8
@@ -149,7 +149,7 @@ must_be_known_options(Valid, Found, [X|XS]) :-
|
||||
check_options([], _).
|
||||
check_options([X | XS], Options) :-
|
||||
(Kinds, Pred, Default, Choice) = X,
|
||||
tfilter(process:find_option(Kinds), Options, Solutions),
|
||||
tfilter(find_option(Kinds), Options, Solutions),
|
||||
(
|
||||
Solutions = [] -> Choice = Default;
|
||||
Solutions = [Provided] -> call(Pred, Provided), Choice = Provided ;
|
||||
|
||||
@@ -2,3 +2,8 @@
|
||||
$ scryer-prolog -f --no-add-history -g 'use_module(library(process)), process_create("cmd", ["/C", "exit", "1"], [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("cmd", [], [process(P), stdout(null), stdin(pipe(S))]), format(S, "exit 1~n", []), process_wait(P, Status), halt'
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user