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 {...@@ -1875,8 +1875,10 @@ fn testMismatchedCpuArchitectureError(b: *Build, opts: Options) *Step {
1875 exe.linkLibC();1875 exe.linkLibC();
18761876
1877 expectLinkErrors(exe, test_step, .{ .exact = &.{1877 expectLinkErrors(exe, test_step, .{ .exact = &.{
1878 "invalid cpu architecture: expected 'x86_64', but found 'aarch64'",1878 "invalid cpu architecture: aarch64",
1879 "note: while parsing /?/a.o",1879 "note: while parsing /?/a.o",
1880 "undefined symbol: foo",
1881 "note: referenced by /?/a.o:.text",
1880 } });1882 } });
18811883
1882 return test_step;1884 return test_step;
...@@ -3305,7 +3307,9 @@ fn testUnknownFileTypeError(b: *Build, opts: Options) *Step {...@@ -3305,7 +3307,9 @@ fn testUnknownFileTypeError(b: *Build, opts: Options) *Step {
3305 exe.linkLibC();3307 exe.linkLibC();
33063308
3307 expectLinkErrors(exe, test_step, .{ .exact = &.{3309 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",
3309 "note: while parsing /?/liba.dylib",3313 "note: while parsing /?/liba.dylib",
3310 "undefined symbol: foo",3314 "undefined symbol: foo",
3311 "note: referenced by /?/a.o:.text",3315 "note: referenced by /?/a.o:.text",