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:
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;
},