summaryrefslogtreecommitdiff
path: root/src/Test.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-10-13 21:05:31 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2022-10-13 22:16:06 +0200
commit000209c13299f1c046dc60e3649c17e9520680de (patch)
treed0ef2db73b3ed95559cec6037348e03706b116f0 /src/Test.hs
parented4dcb61f8a13a3cbfee1c30ea2cb12b5fd3c1ec (diff)
Fail test and start gdb session immediately on process crash
Diffstat (limited to 'src/Test.hs')
-rw-r--r--src/Test.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Test.hs b/src/Test.hs
index 6b04fac..836992c 100644
--- a/src/Test.hs
+++ b/src/Test.hs
@@ -1,6 +1,7 @@
module Test (
Test(..),
TestStep(..),
+ Failed(..),
SourceLine(..),
MonadEval(..),
@@ -41,6 +42,9 @@ data TestStep = forall a. ExprType a => Let SourceLine VarName (Expr a) [TestSte
| PacketLoss (Expr Scientific) (Expr Node) [TestStep]
| Wait
+data Failed = Failed
+ | ProcessCrashed Process
+
newtype SourceLine = SourceLine Text