Commit 75e9a8c7fa

Andrew Kelley <andrew@ziglang.org>
2022-09-18 06:33:19
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 parent 437ddcc
Changed files (1)
test
link
macho
empty
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);
+    }
 }