| ... | ... | @@ -141,19 +141,18 @@ pub fn main2() anyerror!void { |
| 141 | 141 | } |
| 142 | 142 | }; |
| 143 | 143 | } |
| 144 | | switch (builtin.zig_backend) { |
| 145 | | .stage2_llvm, .stage2_wasm, .stage2_x86_64 => blk: { |
| 146 | | if (builtin.os.tag == .macos) break :blk; |
| 147 | | const passed = builtin.test_functions.len - skipped - failed; |
| 148 | | const stderr = std.io.getStdErr(); |
| 149 | | writeInt(stderr, passed) catch {}; |
| 150 | | stderr.writeAll(" passed; ") catch {}; |
| 151 | | writeInt(stderr, skipped) catch {}; |
| 152 | | stderr.writeAll(" skipped; ") catch {}; |
| 153 | | writeInt(stderr, failed) catch {}; |
| 154 | | stderr.writeAll(" failed.\n") catch {}; |
| 155 | | }, |
| 156 | | else => {}, |
| 144 | if (builtin.zig_backend == .stage2_llvm or |
| 145 | builtin.zig_backend == .stage2_wasm or |
| 146 | (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag != .macos)) |
| 147 | { |
| 148 | const passed = builtin.test_functions.len - skipped - failed; |
| 149 | const stderr = std.io.getStdErr(); |
| 150 | writeInt(stderr, passed) catch {}; |
| 151 | stderr.writeAll(" passed; ") catch {}; |
| 152 | writeInt(stderr, skipped) catch {}; |
| 153 | stderr.writeAll(" skipped; ") catch {}; |
| 154 | writeInt(stderr, failed) catch {}; |
| 155 | stderr.writeAll(" failed.\n") catch {}; |
| 157 | 156 | } |
| 158 | 157 | if (failed != 0) { |
| 159 | 158 | return error.TestsFailed; |