| ... | @@ -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"); |
| 18 | | 18 | |
| 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"); |
| 34 | | 32 | |
| 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 | } |