motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit 915032715f337fc75a71d305cbda1b72da745f06 (tree)
parent 7755f7863a30892da3044fb014b1382879162918
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 13 May 2022 14:02:53 -0700

test harness: dump stderr when compiler crashes

Diffstat:
Msrc/test.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/test.zig b/src/test.zig @@ -1330,6 +1330,7 @@ pub const TestContext = struct { } }, else => { + std.debug.print("{s}", .{result.stderr}); dumpArgs(zig_args.items); return error.CompilationCrashed; }, @@ -1403,6 +1404,7 @@ pub const TestContext = struct { } }, else => { + std.debug.print("{s}", .{result.stderr}); dumpArgs(zig_args.items); return error.CompilationCrashed; },