summaryrefslogtreecommitdiff
path: root/test-framework/Test/Framework.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-06-18 11:24:30 +0200
committerTom Smeding <tom@tomsmeding.com>2025-06-18 11:25:36 +0200
commit2cf1cfa469066f15b5d232bea4b2a845ad212df5 (patch)
tree34c16a4097de5b1810acc4db9c0ddb3c0109a54b /test-framework/Test/Framework.hs
parent7bd37711ffecb7a0e202ecfd717e3a4cbbe6074f (diff)
test-framework: Correct line count when collapsing with nested subgroups
Diffstat (limited to 'test-framework/Test/Framework.hs')
-rw-r--r--test-framework/Test/Framework.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-framework/Test/Framework.hs b/test-framework/Test/Framework.hs
index e0dc4b3..1b2b7d7 100644
--- a/test-framework/Test/Framework.hs
+++ b/test-framework/Test/Framework.hs
@@ -190,7 +190,7 @@ runTests options = \tree' ->
"\x1B[32mOK\x1B[0m" ++
prettyDuration False (realToFrac (diffUTCTime endtm starttm))
return (Just 1)
- _ -> return mlns
+ _ -> return ((+1) <$> mlns)
go indent path (Resource make cleanup fun) = do
value <- liftIO make
success <- go indent path (fun value)