mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
std: enable print results in test_runner for stage2_x86_64
This commit is contained in:
parent
3be6c79ca2
commit
150006d216
@ -141,15 +141,18 @@ pub fn main2() anyerror!void {
|
||||
}
|
||||
};
|
||||
}
|
||||
if (builtin.zig_backend == .stage2_llvm or builtin.zig_backend == .stage2_wasm) {
|
||||
const passed = builtin.test_functions.len - skipped - failed;
|
||||
const stderr = std.io.getStdErr();
|
||||
writeInt(stderr, passed) catch {};
|
||||
stderr.writeAll(" passed; ") catch {};
|
||||
writeInt(stderr, skipped) catch {};
|
||||
stderr.writeAll(" skipped; ") catch {};
|
||||
writeInt(stderr, failed) catch {};
|
||||
stderr.writeAll(" failed.\n") catch {};
|
||||
switch (builtin.zig_backend) {
|
||||
.stage2_llvm, .stage2_wasm, .stage2_x86_64 => {
|
||||
const passed = builtin.test_functions.len - skipped - failed;
|
||||
const stderr = std.io.getStdErr();
|
||||
writeInt(stderr, passed) catch {};
|
||||
stderr.writeAll(" passed; ") catch {};
|
||||
writeInt(stderr, skipped) catch {};
|
||||
stderr.writeAll(" skipped; ") catch {};
|
||||
writeInt(stderr, failed) catch {};
|
||||
stderr.writeAll(" failed.\n") catch {};
|
||||
},
|
||||
else => {},
|
||||
}
|
||||
if (failed != 0) {
|
||||
return error.TestsFailed;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user