diff --git a/test/link/macho.zig b/test/link/macho.zig index a98245926e..ed83000c08 100644 --- a/test/link/macho.zig +++ b/test/link/macho.zig @@ -211,7 +211,7 @@ fn testDuplicateDefinitions(b: *Build, opts: Options) *Step { expectLinkErrors(exe, test_step, .{ .exact = &.{ "error: duplicate symbol definition: _strong", "note: defined by /?/a.o", - "note: defined by /?/main.o", + "note: defined by /?/main_zcu.o", } }); return test_step; @@ -2648,7 +2648,7 @@ fn testUnresolvedError(b: *Build, opts: Options) *Step { expectLinkErrors(exe, test_step, .{ .exact = &.{ "error: undefined symbol: _foo", "note: referenced by /?/a.o:_bar", - "note: referenced by /?/main.o:_main.main", + "note: referenced by /?/main_zcu.o:_main.main", } }); } else { expectLinkErrors(exe, test_step, .{ .exact = &.{