make it run under YAP.
This commit is contained in:
parent
ce73eb5683
commit
8df9099cbe
@ -62,8 +62,8 @@ test(cwd, [true, condition(\+current_prolog_flag(windows, true))]) :-
|
|||||||
cwd(Tmp)
|
cwd(Tmp)
|
||||||
]),
|
]),
|
||||||
read_process(Out, CWD0),
|
read_process(Out, CWD0),
|
||||||
normalize_space(atom(CWD), CWD0),
|
system:normalize_space(atom(CWD), CWD0),
|
||||||
same_file(CWD, Tmp).
|
system:swi_same_file(CWD, Tmp).
|
||||||
test(cwd, [true, condition(current_prolog_flag(windows, true))]) :-
|
test(cwd, [true, condition(current_prolog_flag(windows, true))]) :-
|
||||||
tmp_dir(Tmp),
|
tmp_dir(Tmp),
|
||||||
getenv('COMSPEC', Shell),
|
getenv('COMSPEC', Shell),
|
||||||
@ -72,8 +72,8 @@ test(cwd, [true, condition(current_prolog_flag(windows, true))]) :-
|
|||||||
cwd(Tmp)
|
cwd(Tmp)
|
||||||
]),
|
]),
|
||||||
read_process(Out, CWD0),
|
read_process(Out, CWD0),
|
||||||
normalize_space(atom(CWD), CWD0),
|
system:normalize_space(atom(CWD), CWD0),
|
||||||
same_file(CWD, Tmp).
|
system:swi_same_file(CWD, Tmp).
|
||||||
|
|
||||||
tmp_dir(Dir) :-
|
tmp_dir(Dir) :-
|
||||||
getenv('TEMP', Dir), !.
|
getenv('TEMP', Dir), !.
|
||||||
|
Reference in New Issue
Block a user