From 952250b6d79063aa1066b0e945d58360bd70d09f Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 6 May 2026 18:49:26 +0200 Subject: Lowering pass test harness, and initial pass test suite Signed-off-by: Mel --- boot/catboot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'boot/catboot.c') diff --git a/boot/catboot.c b/boot/catboot.c index c75efed..3919a2a 100644 --- a/boot/catboot.c +++ b/boot/catboot.c @@ -133,7 +133,10 @@ debug_lower_pass(struct Source_File source_file) lower_tree(&tree, source_file, &unit); printer(&unit); - return unit.had_error ? 1 : 0; + // diagnostics are part of the printed unit, so the caller can read + // them from the dump. always returning success keeps snapshot tests + // viable for both the green and the diagnostic paths. + return 0; } integer -- cgit 1.4.1