Skip to content

Commit b04df91

Browse files
committed
test-link: correct expected object file name
The name of the ZCU object file emitted by the LLVM backend has been changed in this branch from e.g. `foo.o` to `foo_zcu.o`. This is to avoid name clashes. This commit just updates a link test which started failing because the object name in a linker error changed.
1 parent c1a03a8 commit b04df91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/link/macho.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ fn testDuplicateDefinitions(b: *Build, opts: Options) *Step {
211211
expectLinkErrors(exe, test_step, .{ .exact = &.{
212212
"error: duplicate symbol definition: _strong",
213213
"note: defined by /?/a.o",
214-
"note: defined by /?/main.o",
214+
"note: defined by /?/main_zcu.o",
215215
} });
216216

217217
return test_step;
@@ -2648,7 +2648,7 @@ fn testUnresolvedError(b: *Build, opts: Options) *Step {
26482648
expectLinkErrors(exe, test_step, .{ .exact = &.{
26492649
"error: undefined symbol: _foo",
26502650
"note: referenced by /?/a.o:_bar",
2651-
"note: referenced by /?/main.o:_main.main",
2651+
"note: referenced by /?/main_zcu.o:_main.main",
26522652
} });
26532653
} else {
26542654
expectLinkErrors(exe, test_step, .{ .exact = &.{

0 commit comments

Comments
 (0)