authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-12-05 14:40:13+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-12-05 14:40:13+01:00
log297c39ff56fad5fc953c4f3b0ef7bfdda7107052
treef565b5506831358ec9b4ad5c825fea9303c715de
parente3592281da4626dfcc959d0102289f394b54adf5

test/link/elf: adjust tests for new errors


1 files changed, 6 insertions(+), 2 deletions(-)

test/link/elf.zig+6-2
......@@ -1875,8 +1875,10 @@ fn testMismatchedCpuArchitectureError(b: *Build, opts: Options) *Step {
18751875 exe.linkLibC();
18761876
18771877 expectLinkErrors(exe, test_step, .{ .exact = &.{
1878 "invalid cpu architecture: expected 'x86_64', but found 'aarch64'",
1878 "invalid cpu architecture: aarch64",
18791879 "note: while parsing /?/a.o",
1880 "undefined symbol: foo",
1881 "note: referenced by /?/a.o:.text",
18801882 } });
18811883
18821884 return test_step;
......@@ -3305,7 +3307,9 @@ fn testUnknownFileTypeError(b: *Build, opts: Options) *Step {
33053307 exe.linkLibC();
33063308
33073309 expectLinkErrors(exe, test_step, .{ .exact = &.{
3308 "unknown file type",
3310 "invalid token in LD script: '\\x00\\x00\\x00\\x0c\\x00\\x00\\x00/usr/lib/dyld\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x0d' (0:829)",
3311 "note: while parsing /?/liba.dylib",
3312 "error: unexpected error: parsing input file failed with error InvalidLdScript",
33093313 "note: while parsing /?/liba.dylib",
33103314 "undefined symbol: foo",
33113315 "note: referenced by /?/a.o:.text",