make hunit exit 1 if there are errors
This commit is contained in:
parent
36eeea6bef
commit
aeb002092c
@ -108,4 +108,6 @@ tests = TestList [
|
|||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = do
|
main = do
|
||||||
result <- runTestTT tests
|
result <- runTestTT tests
|
||||||
if failures result > 0 then Exit.exitFailure else Exit.exitSuccess
|
if (failures result > 0) || (errors result > 0)
|
||||||
|
then Exit.exitFailure
|
||||||
|
else Exit.exitSuccess
|
||||||
|
Loading…
Reference in New Issue
Block a user