Skip to content

Add a safety timeout (with a reasonably large time, not infringing on user-specified timeouts under "normal execution") #9

Open
@jvoigtlaender

Description

@jvoigtlaender

Probably somewhere around here (either in this function or at its call site):

runTestText :: ShowS -> Test -> IO (Counts, ShowS)
runTestText = performTest reportStart reportError reportFailure
where
reportStart _ = return
reportError = reportProblem "Error:" "Error in: "
reportFailure = reportProblem "Failure:" "Failure in: "
reportProblem p0 p1 _ msg ss us = return $ \rest -> us (line ++ '\n' : rest)
where
line = "### " ++ kind ++ path' ++ "\n" ++ msg
kind = if null path' then p0 else p1
path' = showPath [x | x@(Label _) <- path ss]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions