test/link/macho: use EmulationStep for dead_strip

This commit is contained in:
Luuk de Gram 2022-07-23 17:27:47 +02:00
parent 2429c3d73c
commit 72c0cebe5c
No known key found for this signature in database
GPG Key ID: A8CFE58E4DC7D664

View File

@ -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);
}