summaryrefslogtreecommitdiff
path: root/test/script/run.et
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-01-06 22:29:07 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2026-01-07 22:39:03 +0100
commit401b4c233d12763853877d4c31a2cf4342ca87b6 (patch)
treef6316d50ff413c73776f9d6c697deaef369cb1db /test/script/run.et
parent0c21217fa599a7496a17d22c5105ef584785c350 (diff)
Call stack for the ‘expect’ statement
Diffstat (limited to 'test/script/run.et')
-rw-r--r--test/script/run.et22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/script/run.et b/test/script/run.et
index dfccab5..b2d3ca9 100644
--- a/test/script/run.et
+++ b/test/script/run.et
@@ -151,3 +151,25 @@ test CallStack:
expect /(run-.*)/ capture done
guard (done == "run-failed")
flush
+
+ send "run BE"
+ expect /match-fail expect failed/
+ expect /match-fail-line .*\/callstack.et:27:5: .*/
+ expect /match-fail-var x 1/
+ expect /match-fail-line .*\/callstack.et:31:5: .*/
+ local:
+ expect /(run-.*)/ capture done
+ guard (done == "run-failed")
+ flush
+
+ send "run CE"
+ expect /match-fail expect failed/
+ expect /match-fail-line .*\/callstack.et:36:5: .*/
+ expect /match-fail-var x 3/
+ expect /match-fail-var y 2/
+ expect /match-fail-line .*\/callstack.et:41:5: .*/
+ expect /match-fail-var z 3/
+ local:
+ expect /(run-.*)/ capture done
+ guard (done == "run-failed")
+ flush