diff --git a/test/tests.zig b/test/tests.zig index 5d173c44f5..4672359802 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; }