authorgravatar for luuk@degram.devLuuk de Gram <luuk@degram.dev> 2022-07-23 17:27:47+02:00
committergravatar for luuk@degram.devLuuk de Gram <luuk@degram.dev> 2022-07-23 17:27:47+02:00
log72c0cebe5c5e6954ae9992d36f8164ae9433df9e
tree22120c97206f1ac62def3c5049850c1dea894fa8
parent2429c3d73c0c8fc279a556d65881f7c25c6bb6e9
signaturelock-open Commit is signed but in an unrecognized format.

test/link/macho: use EmulationStep for dead_strip


1 files changed, 2 insertions(+), 6 deletions(-)

test/link/macho/dead_strip/build.zig+2-6
...@@ -16,9 +16,7 @@ pub fn build(b: *Builder) void {...@@ -16,9 +16,7 @@ pub fn build(b: *Builder) void {
16 check.checkInSymtab();16 check.checkInSymtab();
17 check.checkNext("{*} (__TEXT,__text) external _iAmUnused");17 check.checkNext("{*} (__TEXT,__text) external _iAmUnused");
1818
19 test_step.dependOn(&check.step);19 const run_cmd = check.runAndCompare();
20
21 const run_cmd = exe.run();
22 run_cmd.expectStdOutEqual("Hello!\n");20 run_cmd.expectStdOutEqual("Hello!\n");
23 test_step.dependOn(&run_cmd.step);21 test_step.dependOn(&run_cmd.step);
24 }22 }
...@@ -32,9 +30,7 @@ pub fn build(b: *Builder) void {...@@ -32,9 +30,7 @@ pub fn build(b: *Builder) void {
32 check.checkInSymtab();30 check.checkInSymtab();
33 check.checkNotPresent("{*} (__TEXT,__text) external _iAmUnused");31 check.checkNotPresent("{*} (__TEXT,__text) external _iAmUnused");
3432
35 test_step.dependOn(&check.step);33 const run_cmd = check.runAndCompare();
36
37 const run_cmd = exe.run();
38 run_cmd.expectStdOutEqual("Hello!\n");34 run_cmd.expectStdOutEqual("Hello!\n");
39 test_step.dependOn(&run_cmd.step);35 test_step.dependOn(&run_cmd.step);
40 }36 }