mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 08:14:48 +00:00
test/link/macho: use EmulationStep for dead_strip
This commit is contained in:
parent
2429c3d73c
commit
72c0cebe5c
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user