Skip to content

Commit

Permalink
tests: render error messages even if not validating them
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Apr 12, 2024
1 parent 67c7b5a commit 128d089
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Binary file added test/cases/invalid continuation byte at eof.c
Binary file not shown.
8 changes: 6 additions & 2 deletions test/runner.zig
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,12 @@ pub fn main() !void {
continue;
}

if (pp.defines.contains("NO_ERROR_VALIDATION")) continue;

if (pp.defines.contains("NO_ERROR_VALIDATION")) {
var m = MsgWriter.init(pp.comp.gpa);
defer m.deinit();
aro.Diagnostics.renderMessages(pp.comp, &m);
continue;
}
aro.Diagnostics.render(&comp, std.io.tty.detectConfig(std.io.getStdErr()));

if (pp.defines.get("EXPECTED_OUTPUT")) |macro| blk: {
Expand Down

0 comments on commit 128d089

Please sign in to comment.