Skip to content

Commit

Permalink
macho: enable symbol attribute tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Dec 8, 2023
1 parent 460708e commit 4ac0e9b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/macho.zig
Original file line number Diff line number Diff line change
Expand Up @@ -982,9 +982,7 @@ fn testMhExecuteHeader(b: *Build, opts: Options) *Step {

const check = exe.check();
check.checkInSymtab();
// TODO enhance Mach-O parser
// check.checkContains("[referenced dynamically] external __mh_execute_header");
check.checkContains("external __mh_execute_header");
check.checkContains("[referenced dynamically] external __mh_execute_header");
test_step.dependOn(&check.step);

return test_step;
Expand Down Expand Up @@ -1996,9 +1994,9 @@ fn testWeakLibrary(b: *Build, opts: Options) *Step {
check.checkExact("cmd LOAD_WEAK_DYLIB");
check.checkContains("liba.dylib");
check.checkInSymtab();
check.checkExact("(undefined) weak external _a (from liba)");
check.checkExact("(undefined) weak-ref external _a (from liba)");
check.checkInSymtab();
check.checkExact("(undefined) weak external _asStr (from liba)");
check.checkExact("(undefined) weak-ref external _asStr (from liba)");
test_step.dependOn(&check.step);

const run = exe.run();
Expand All @@ -2024,7 +2022,7 @@ fn testWeakRef(b: *Build, opts: Options) *Step {

const check = exe.check();
check.checkInSymtab();
check.checkExact("(undefined) weak external _foo (from self import)");
check.checkExact("(undefined) weak-ref external _foo (from self import)");
test_step.dependOn(&check.step);

const run = exe.run();
Expand Down

0 comments on commit 4ac0e9b

Please sign in to comment.