test-exit should return non-zero for failures outside test* forms

This commit is contained in:
Alex Shinn 2017-04-04 22:54:00 +09:00
parent ceb2345b68
commit 22b39432b4

View file

@ -176,7 +176,8 @@
(warning "error in group outside of tests") (warning "error in group outside of tests")
(print-exception exn (current-error-port)) (print-exception exn (current-error-port))
(test-group-inc! (current-test-group) 'count) (test-group-inc! (current-test-group) 'count)
(test-group-inc! (current-test-group) 'ERROR))) (test-group-inc! (current-test-group) 'ERROR)
(test-failure-count (+ 1 (test-failure-count)))))
body ...) body ...)
(test-end name) (test-end name)
(current-test-group old-group))))) (current-test-group old-group)))))