From 75e9a8c7fabb1f32753960b9114dcee875256351 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 17 Sep 2022 21:33:19 -0700 Subject: [PATCH] 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. --- test/link/macho/empty/build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/link/macho/empty/build.zig b/test/link/macho/empty/build.zig index 14a9af8040..c49f3b1219 100644 --- a/test/link/macho/empty/build.zig +++ b/test/link/macho/empty/build.zig @@ -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); + } }