skip macho link test execution on non-macOS

2c3d87b168 introduced a new test that
passes on macOS but fails on other operating systems. This commit makes
it only run on macOS.
This commit is contained in:
Andrew Kelley
2022-09-17 21:33:19 -07:00
parent 437ddcce7a
commit 75e9a8c7fa

View File

@@ -18,5 +18,7 @@ pub fn build(b: *Builder) void {
const run_cmd = exe.run();
run_cmd.expectStdOutEqual("Hello!\n");
test_step.dependOn(&run_cmd.step);
if (@import("builtin").os.tag == .macos) {
test_step.dependOn(&run_cmd.step);
}
}