summaryrefslogtreecommitdiffhomepage
path: root/tests/02_runtime
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-12 19:49:41 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-14 12:09:28 +0200
commit05cc0ee7a7c7dc442e22dfdc22c0574ac6b3e71b (patch)
tree16355886feba68f498a723b74a830dda4c5efa84 /tests/02_runtime
parent8b4134e040561c19de733b017c6e2ce5bb49de48 (diff)
treewide: rework source file and callstack handling
- Keep an open FILE* reference to processed source files in order to be able to rewind and extract error context later - Build a proper call stack when invoking utpl functions - Report call stack in exceptions Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/02_runtime')
-rw-r--r--tests/02_runtime/04_switch_case3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/02_runtime/04_switch_case b/tests/02_runtime/04_switch_case
index 4a9d3e9..d83667f 100644
--- a/tests/02_runtime/04_switch_case
+++ b/tests/02_runtime/04_switch_case
@@ -242,7 +242,8 @@ one
-- Expect stderr --
Died
-In line 6, byte 6:
+In test(), line 6, byte 6:
+ at main function ([stdin]:17:11)
` die();`
Near here -----^