authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-10 14:21:13-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-10 14:21:52-07:00
log2857a3bcb61ad8f119f46acf3a76fd70195f9bd5
treed02f0ea72d350057f6a270797cfc15cc2de3dc84
parent9fa0a44de99633be30563fb9d4a93e00a90698ce

link.Elf tests: update for new static lib behavior

the new code in this branch correctly only stores basenames in the static archive; update the test to reflect that.

1 files changed, 7 insertions(+), 7 deletions(-)

test/link/elf.zig+7-7
...@@ -952,25 +952,25 @@ fn testEmitStaticLib(b: *Build, opts: Options) *Step {...@@ -952,25 +952,25 @@ fn testEmitStaticLib(b: *Build, opts: Options) *Step {
952952
953 const check = lib.checkObject();953 const check = lib.checkObject();
954 check.checkInArchiveSymtab();954 check.checkInArchiveSymtab();
955 check.checkExactPath("in object", obj1.getEmittedBin());955 check.checkExact("in object obj1.o");
956 check.checkExact("foo");956 check.checkExact("foo");
957 check.checkInArchiveSymtab();957 check.checkInArchiveSymtab();
958 check.checkExactPath("in object", obj1.getEmittedBin());958 check.checkExact("in object obj1.o");
959 check.checkExact("bar");959 check.checkExact("bar");
960 check.checkInArchiveSymtab();960 check.checkInArchiveSymtab();
961 check.checkExactPath("in object", obj1.getEmittedBin());961 check.checkExact("in object obj1.o");
962 check.checkExact("fooBar");962 check.checkExact("fooBar");
963 check.checkInArchiveSymtab();963 check.checkInArchiveSymtab();
964 check.checkExactPath("in object", obj2.getEmittedBin());964 check.checkExact("in object obj2.o");
965 check.checkExact("tentative");965 check.checkExact("tentative");
966 check.checkInArchiveSymtab();966 check.checkInArchiveSymtab();
967 check.checkExactPath("in object", obj3.getEmittedBin());967 check.checkExact("in object a_very_long_file_name_so_that_it_ends_up_in_strtab.o");
968 check.checkExact("weakFoo");968 check.checkExact("weakFoo");
969 check.checkInArchiveSymtab();969 check.checkInArchiveSymtab();
970 check.checkExactPath("in object", obj3.getEmittedBin());970 check.checkExact("in object a_very_long_file_name_so_that_it_ends_up_in_strtab.o");
971 check.checkExact("strongBar");971 check.checkExact("strongBar");
972 check.checkInArchiveSymtab();972 check.checkInArchiveSymtab();
973 check.checkExactPath("in object", obj3.getEmittedBin());973 check.checkExact("in object a_very_long_file_name_so_that_it_ends_up_in_strtab.o");
974 check.checkExact("strongBarAlias");974 check.checkExact("strongBarAlias");
975 test_step.dependOn(&check.step);975 test_step.dependOn(&check.step);
976976