diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-01-06 22:29:07 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-01-07 22:39:03 +0100 |
| commit | 401b4c233d12763853877d4c31a2cf4342ca87b6 (patch) | |
| tree | f6316d50ff413c73776f9d6c697deaef369cb1db /test/script/run.et | |
| parent | 0c21217fa599a7496a17d22c5105ef584785c350 (diff) | |
Call stack for the ‘expect’ statement
Diffstat (limited to 'test/script/run.et')
| -rw-r--r-- | test/script/run.et | 22 |
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 |