authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-09-17 21:33:19-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-09-17 21:33:19-07:00
log75e9a8c7fabb1f32753960b9114dcee875256351
tree078d2bee3d41b7c57531a69fe0b130ada0400a80
parent437ddcce7a2f558e3580fbe7b43b434672bbe1d2

skip macho link test execution on non-macOS

2c3d87b168bf522f538e78325fdae71c320e6e20 introduced a new test that passes on macOS but fails on other operating systems. This commit makes it only run on macOS.

1 files changed, 3 insertions(+), 1 deletions(-)

test/link/macho/empty/build.zig+3-1
......@@ -18,5 +18,7 @@ pub fn build(b: *Builder) void {
1818
1919 const run_cmd = exe.run();
2020 run_cmd.expectStdOutEqual("Hello!\n");
21 test_step.dependOn(&run_cmd.step);
21 if (@import("builtin").os.tag == .macos) {
22 test_step.dependOn(&run_cmd.step);
23 }
2224}