diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-09-20 22:03:52 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-09-20 22:03:52 +0200 |
commit | 442bc3df9692edde632e3a1d7217e861bf85fd81 (patch) | |
tree | 485e224c9ac029ce9aad72f63cf338d9aa91b5dd /test/script/run.et | |
parent | 89ed9a3a6c0ada2b1c252a5e24283b84eb0fa4c8 (diff) |
Pass call stack info through function application
Changelog: Show call stack in error messages
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 f7e4f69..392c44e 100644 --- a/test/script/run.et +++ b/test/script/run.et @@ -128,3 +128,25 @@ test CallStack: expect /(run-.*)/ capture done guard (done == "run-failed") flush + + send "run BG" + expect /match-fail guard failed/ + expect /match-fail-line .*\/callstack.et:12:5: .*/ + expect /match-fail-var x 1/ + expect /match-fail-line .*\/callstack.et:15:5: .*/ + local: + expect /(run-.*)/ capture done + guard (done == "run-failed") + flush + + send "run CG" + expect /match-fail guard failed/ + expect /match-fail-line .*\/callstack.et:19:5: .*/ + expect /match-fail-var x 3/ + expect /match-fail-var y 2/ + expect /match-fail-line .*\/callstack.et:23:5: .*/ + expect /match-fail-var z 3/ + local: + expect /(run-.*)/ capture done + guard (done == "run-failed") + flush |