diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-09-13 21:35:02 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-09-13 23:39:16 +0200 |
commit | 8e3d03e55793b49dc6844b23877c84d111e8d7d1 (patch) | |
tree | a9f44351019a3b3016259d117d6c906f66cbb623 /src/Run.hs | |
parent | 866d539bb9e6b9cf1676bff2e592e73a94d6f572 (diff) |
Diffstat (limited to 'src/Run.hs')
-rw-r--r-- | src/Run.hs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -208,8 +208,8 @@ runStep = \case Flush p regex -> do atomicallyTest $ flushProcessOutput p regex - Guard line vars expr -> do - testStepGuard line vars expr + Guard stack expr -> do + testStepGuard stack expr DisconnectNode node inner -> do withDisconnectedUp (nodeUpstream node) $ runStep inner @@ -343,6 +343,6 @@ expect sline p (Traced trace re) tvars inner = do Nothing -> exprFailed (T.pack "expect") (CallStack [ ( sline, trace ) ]) (Just $ procName p) -testStepGuard :: SourceLine -> EvalTrace -> Bool -> TestRun () -testStepGuard sline vars x = do - when (not x) $ exprFailed (T.pack "guard") (CallStack [ ( sline, vars ) ]) Nothing +testStepGuard :: CallStack -> Bool -> TestRun () +testStepGuard stack x = do + when (not x) $ exprFailed (T.pack "guard") stack Nothing |