Skip to content

Commit 80bed7d

Browse files
committed
test: error-terminate test suite if any tests fail
1 parent 3ea6a0b commit 80bed7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/main.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ program main
2727
call string_test%report(passes, tests)
2828

2929
if (this_image()==1) print *, new_line('a'), "_________ In total, ",passes," of ",tests, " tests pass. _________"
30+
if (passes /= tests) error stop
3031
end program

0 commit comments

Comments
 (0)