diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-12-05 16:31:47 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-12-05 16:31:47 +0100 |
| commit | ee1630beeaaa24cb6d65631517afabc0621b902f (patch) | |
| tree | f524ba20b6608fbbb316f95c6caf8df63dc18508 /test | |
| parent | 205857e3429da161c46870df84b286345353c5cf (diff) | |
| download | zig-ee1630beeaaa24cb6d65631517afabc0621b902f.tar.gz zig-ee1630beeaaa24cb6d65631517afabc0621b902f.zip | |
elf: exit early with an error when parsing or init failed
Diffstat (limited to 'test')
| -rw-r--r-- | test/link/elf.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/link/elf.zig b/test/link/elf.zig index e730644dff..c2ed3e08b4 100644 --- a/test/link/elf.zig +++ b/test/link/elf.zig @@ -1877,8 +1877,6 @@ fn testMismatchedCpuArchitectureError(b: *Build, opts: Options) *Step { expectLinkErrors(exe, test_step, .{ .exact = &.{ "invalid cpu architecture: aarch64", "note: while parsing /?/a.o", - "undefined symbol: foo", - "note: referenced by /?/a.o:.text", } }); return test_step; @@ -3309,10 +3307,8 @@ fn testUnknownFileTypeError(b: *Build, opts: Options) *Step { expectLinkErrors(exe, test_step, .{ .exact = &.{ "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)", "note: while parsing /?/liba.dylib", - "error: unexpected error: parsing input file failed with error InvalidLdScript", + "unexpected error: parsing input file failed with error InvalidLdScript", "note: while parsing /?/liba.dylib", - "undefined symbol: foo", - "note: referenced by /?/a.o:.text", } }); return test_step; |
