make hunit exit 1 if there are errors

This commit is contained in:
Daniel Barlow 2024-10-30 20:45:37 +00:00
parent 36eeea6bef
commit aeb002092c

View File

@ -108,4 +108,6 @@ tests = TestList [
main :: IO ()
main = do
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