diff options
| author | Mel <mel@rnrd.eu> | 2026-05-06 18:49:26 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-05-06 18:49:26 +0200 |
| commit | 952250b6d79063aa1066b0e945d58360bd70d09f (patch) | |
| tree | 8eff74504b558d5a83485cebd4d8c5808e0064a9 /boot/catboot.c | |
| parent | ac696b22b3f03ae9670a9d1d154ce7ff848b5e55 (diff) | |
| download | catskill-952250b6d79063aa1066b0e945d58360bd70d09f.tar.zst catskill-952250b6d79063aa1066b0e945d58360bd70d09f.zip | |
Lowering pass test harness, and initial pass test suite
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/catboot.c')
| -rw-r--r-- | boot/catboot.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
