aboutsummaryrefslogtreecommitdiff
path: root/tests/i/multifile-runtime-catch
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 09:35:19 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 09:35:19 +0000
commit6b332f91c82da6e19efad92b58ac1d9c1bc9eec0 (patch)
treea553b6aab0589dd7cafe5b2508cb274ac0ae9e98 /tests/i/multifile-runtime-catch
parentb25cbba212354e44921d23490765782f61787bc8 (diff)
feat(runtime): write runtime diagnostics to stderr
Runtime check messages and the unhandled-exception message were printed to stdout by the generated program, so `cpsc x.cps -r >out.txt` captured them. They are now formatted with snprintf and written with write(2). Test expectations and docs are updated accordingly. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/multifile-runtime-catch')
-rw-r--r--tests/i/multifile-runtime-catch/expected-stderr.txt1
-rw-r--r--tests/i/multifile-runtime-catch/expected.txt1
2 files changed, 1 insertions, 1 deletions
diff --git a/tests/i/multifile-runtime-catch/expected-stderr.txt b/tests/i/multifile-runtime-catch/expected-stderr.txt
new file mode 100644
index 0000000..833ca4b
--- /dev/null
+++ b/tests/i/multifile-runtime-catch/expected-stderr.txt
@@ -0,0 +1 @@
+[Fatal] line 2: Division by zero
diff --git a/tests/i/multifile-runtime-catch/expected.txt b/tests/i/multifile-runtime-catch/expected.txt
index 731df7f..6a0b8ed 100644
--- a/tests/i/multifile-runtime-catch/expected.txt
+++ b/tests/i/multifile-runtime-catch/expected.txt
@@ -1,3 +1,2 @@
-[Fatal] line 2: Division by zero
runtime caught
5