aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-09-18 09:22:45 +0200
committerJakub Konka <kubkon@jakubkonka.com>2022-09-18 09:22:49 +0200
commit0030e72d53cc914f28f962c6c8211f9c7a5bac35 (patch)
tree474193529ffc3ff0a76c1d19eab95f73fa226f58 /test
parent75e9a8c7fabb1f32753960b9114dcee875256351 (diff)
downloadzig-0030e72d53cc914f28f962c6c8211f9c7a5bac35.tar.gz
zig-0030e72d53cc914f28f962c6c8211f9c7a5bac35.zip
use EmulatableRunStep for newly added macho link test
Reverts 75e9a8c7fabb1f32753960b9114dcee875256351
Diffstat (limited to 'test')
-rw-r--r--test/link/macho/empty/build.zig8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/link/macho/empty/build.zig b/test/link/macho/empty/build.zig
index c49f3b1219..0af10c85ac 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);
}