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 {
952952
953953 const check = lib.checkObject();
954954 check.checkInArchiveSymtab();
955 check.checkExactPath("in object", obj1.getEmittedBin());
955 check.checkExact("in object obj1.o");
956956 check.checkExact("foo");
957957 check.checkInArchiveSymtab();
958 check.checkExactPath("in object", obj1.getEmittedBin());
958 check.checkExact("in object obj1.o");
959959 check.checkExact("bar");
960960 check.checkInArchiveSymtab();
961 check.checkExactPath("in object", obj1.getEmittedBin());
961 check.checkExact("in object obj1.o");
962962 check.checkExact("fooBar");
963963 check.checkInArchiveSymtab();
964 check.checkExactPath("in object", obj2.getEmittedBin());
964 check.checkExact("in object obj2.o");
965965 check.checkExact("tentative");
966966 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");
968968 check.checkExact("weakFoo");
969969 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");
971971 check.checkExact("strongBar");
972972 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");
974974 check.checkExact("strongBarAlias");
975975 test_step.dependOn(&check.step);
976976