diff --git a/test/tests.zig b/test/tests.zig index 5d173c44f56faeffd9b740eb5d1e17d2aab3ef35..46723598028e82b9fcf4a06652499b04bd23abd5 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -1512,7 +1512,7 @@ pub const TranslateCContext = struct { switch (term) { .Exited => |code| { if (code != 0) { - warn("Compilation failed with exit code {}\n", .{code}); + warn("Compilation failed with exit code {}\n{}\n", .{ code, stderr_buf.toSliceConst() }); printInvocation(zig_args.toSliceConst()); return error.TestFailed; }