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.
This commit is contained in:
Andrew Kelley 2024-10-10 14:21:13 -07:00
parent 9fa0a44de9
commit 2857a3bcb6

View File

@ -952,25 +952,25 @@ fn testEmitStaticLib(b: *Build, opts: Options) *Step {
const check = lib.checkObject();
check.checkInArchiveSymtab();
check.checkExactPath("in object", obj1.getEmittedBin());
check.checkExact("in object obj1.o");
check.checkExact("foo");
check.checkInArchiveSymtab();
check.checkExactPath("in object", obj1.getEmittedBin());
check.checkExact("in object obj1.o");
check.checkExact("bar");
check.checkInArchiveSymtab();
check.checkExactPath("in object", obj1.getEmittedBin());
check.checkExact("in object obj1.o");
check.checkExact("fooBar");
check.checkInArchiveSymtab();
check.checkExactPath("in object", obj2.getEmittedBin());
check.checkExact("in object obj2.o");
check.checkExact("tentative");
check.checkInArchiveSymtab();
check.checkExactPath("in object", obj3.getEmittedBin());
check.checkExact("in object a_very_long_file_name_so_that_it_ends_up_in_strtab.o");
check.checkExact("weakFoo");
check.checkInArchiveSymtab();
check.checkExactPath("in object", obj3.getEmittedBin());
check.checkExact("in object a_very_long_file_name_so_that_it_ends_up_in_strtab.o");
check.checkExact("strongBar");
check.checkInArchiveSymtab();
check.checkExactPath("in object", obj3.getEmittedBin());
check.checkExact("in object a_very_long_file_name_so_that_it_ends_up_in_strtab.o");
check.checkExact("strongBarAlias");
test_step.dependOn(&check.step);