Commit 72c0cebe5c

Luuk de Gram <luuk@degram.dev>
2022-07-23 17:27:47
test/link/macho: use EmulationStep for dead_strip
1 parent 2429c3d
Changed files (1)
test
link
macho
dead_strip
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);
     }