summaryrefslogtreecommitdiff
path: root/test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-04-26 20:08:36 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-04-26 20:26:19 -0400
commit948691e89322e88ed2f83bfee4a18dcbdd2f696e (patch)
treeefe576f5cda86de9a6d44eb265219bacce533a1e /test.hs
parentbb8e3c5b6dda5874ec214d7f6dcfe6f8445d622b (diff)
exit nonzero when there were failure, not just errors
ya, I need a test suite for my test suite
Diffstat (limited to 'test.hs')
-rw-r--r--test.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.hs b/test.hs
index ab4766b42..2cb0415ab 100644
--- a/test.hs
+++ b/test.hs
@@ -64,8 +64,8 @@ main = do
propigate r
propigate :: (Counts, Int) -> IO ()
-propigate (Counts { errors = e }, _)
- | e > 0 = error "failed"
+propigate (Counts { errors = e , failures = f }, _)
+ | e+f > 0 = error "failed"
| otherwise = return ()
quickcheck :: Test