Skip to content

Commit

Permalink
fixed test headers
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Dec 25, 2023
1 parent 067955d commit f8a75c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion prolog/logicmoo_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
% ===================================================================
*/
:- if((prolog_load_context(source,File),prolog_load_context(file,File));current_prolog_flag(xref,true)).
%:- module(logicmoo_test,[]).
:- module(logicmoo_test,[]).
:-endif.

:- define_into_module(
Expand Down
7 changes: 5 additions & 2 deletions prolog/logicmoo_test_header.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
% This file is mostly all inside if/endifs so it doesnt interfere with `module/2`
:- if((prolog_load_context(source,File),prolog_load_context(file,File));current_prolog_flag(xref,true)).
:- else.

test_completed% This file is mostly all inside if/endifs so it doesnt interfere with `module/2`
:- if((set_stream(current_output,tty(true)))). :- endif.

:- dumpST.
Expand Down Expand Up @@ -113,4 +116,4 @@
:- if((prolog_load_context(source,F),echo_source_file_no_catchup(F))). :- endif.
:- endif.


:- endif.
4 changes: 3 additions & 1 deletion prolog/shared_test_header.pl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
% This file is mostly all inside if/endifs so it doesnt interfere with `module/2`

:- if((prolog_load_context(source,File),prolog_load_context(file,File));current_prolog_flag(xref,true)).
:- else.
:- if((
keep_going,
redefine_system_predicate(system:break/0),
abolish(system:break,0),
assert(system:break :- (dumpST, sleep(1))))).
:- endif.
:- endif.

0 comments on commit f8a75c0

Please sign in to comment.