authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-02-22 21:53:49+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-02-22 21:57:44+01:00
log8abd30019c6e156b8c79f675f29c76ebf762a7d9
treecd869c2c5441de6fd184e56eccee77cd87d544f4
parentd657ede32421910d5cba5b749182dcd1875efe18

x64: completely ignore printing tests on macos until I fix the linker


1 files changed, 12 insertions(+), 13 deletions(-)

lib/std/special/test_runner.zig+12-13
......@@ -141,19 +141,18 @@ pub fn main2() anyerror!void {
141141 }
142142 };
143143 }
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 {};
157156 }
158157 if (failed != 0) {
159158 return error.TestsFailed;