diff --git a/test/link/macho/empty/build.zig b/test/link/macho/empty/build.zig index c49f3b1219821646b2fb3f754efb75a4d1e3402d..0af10c85acd71ff5a5a4be51dff51e2f362bef35 100644 --- a/test/link/macho/empty/build.zig +++ b/test/link/macho/empty/build.zig @@ -1,6 +1,5 @@ const std = @import("std"); const Builder = std.build.Builder; -const LibExeObjectStep = std.build.LibExeObjStep; pub fn build(b: *Builder) void { const mode = b.standardReleaseOptions(); @@ -16,9 +15,6 @@ pub fn build(b: *Builder) void { exe.setTarget(target); exe.linkLibC(); - const run_cmd = exe.run(); - run_cmd.expectStdOutEqual("Hello!\n"); - if (@import("builtin").os.tag == .macos) { - test_step.dependOn(&run_cmd.step); - } + const run_cmd = std.build.EmulatableRunStep.create(b, "run", exe); + test_step.dependOn(&run_cmd.step); }