translate-c tests: print clang compile errors on nonzero exit code
parent
3dd067fa2b
commit
7bd80f2071
|
@ -1512,7 +1512,7 @@ pub const TranslateCContext = struct {
|
||||||
switch (term) {
|
switch (term) {
|
||||||
.Exited => |code| {
|
.Exited => |code| {
|
||||||
if (code != 0) {
|
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());
|
printInvocation(zig_args.toSliceConst());
|
||||||
return error.TestFailed;
|
return error.TestFailed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue