Skip to content

Commit b96a171

Browse files
committed
Make tests error proof
Currently there is no way to actually just run a goal and avoid going into the toplevel, so if the predicate errors the test will just go on to the toplevel and freeze there forever in CI. This catches any errors and turns them into a 1 exit code, which will fail CI instead.
1 parent 0cd90c6 commit b96a171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ install() {
1414
}
1515

1616
test_package() {
17-
scryer-prolog -f main.pl -g main,halt
17+
scryer-prolog -f main.pl -g "catch(main, _, halt(1)),halt"
1818
}
1919

2020
clean

0 commit comments

Comments
 (0)