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