From 7bd80f207147167821634e16983edf9e9b115c9f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 2 Jan 2020 11:12:21 -0500 Subject: [PATCH] translate-c tests: print clang compile errors on nonzero exit code --- test/tests.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }