commit 2857a3bcb61ad8f119f46acf3a76fd70195f9bd5 (tree)
parent 9fa0a44de99633be30563fb9d4a93e00a90698ce
Author: Andrew Kelley <andrew@ziglang.org>
Date: Thu, 10 Oct 2024 14:21:13 -0700
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.
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/test/link/elf.zig b/test/link/elf.zig
@@ -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);