zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 72c0cebe5c5e6954ae9992d36f8164ae9433df9e (tree)
parent 2429c3d73c0c8fc279a556d65881f7c25c6bb6e9
Author: Luuk de Gram <luuk@degram.dev>
Date:   Sat, 23 Jul 2022 17:27:47 +0200

test/link/macho: use EmulationStep for dead_strip

Diffstat:
Mtest/link/macho/dead_strip/build.zig | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/test/link/macho/dead_strip/build.zig b/test/link/macho/dead_strip/build.zig @@ -16,9 +16,7 @@ pub fn build(b: *Builder) void { check.checkInSymtab(); check.checkNext("{*} (__TEXT,__text) external _iAmUnused"); - test_step.dependOn(&check.step); - - const run_cmd = exe.run(); + const run_cmd = check.runAndCompare(); run_cmd.expectStdOutEqual("Hello!\n"); test_step.dependOn(&run_cmd.step); } @@ -32,9 +30,7 @@ pub fn build(b: *Builder) void { check.checkInSymtab(); check.checkNotPresent("{*} (__TEXT,__text) external _iAmUnused"); - test_step.dependOn(&check.step); - - const run_cmd = exe.run(); + const run_cmd = check.runAndCompare(); run_cmd.expectStdOutEqual("Hello!\n"); test_step.dependOn(&run_cmd.step); }