| ... | @@ -3609,12 +3609,17 @@ fn testUnknownFileTypeError(b: *Build, opts: Options) *Step { | ... | @@ -3609,12 +3609,17 @@ fn testUnknownFileTypeError(b: *Build, opts: Options) *Step { |
| 3609 | exe.linkLibrary(dylib); | 3609 | exe.linkLibrary(dylib); |
| 3610 | exe.linkLibC(); | 3610 | exe.linkLibC(); |
| 3611 | | 3611 | |
| 3612 | expectLinkErrors(exe, test_step, .{ .exact = &.{ | 3612 | // TODO: improve the test harness to be able to selectively match lines in error output |
| 3613 | "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)", | 3613 | // while avoiding jankiness |
| 3614 | "note: while parsing /?/liba.dylib", | 3614 | // expectLinkErrors(exe, test_step, .{ .exact = &.{ |
| 3615 | "unexpected error: parsing input file failed with error InvalidLdScript", | 3615 | // "error: invalid token in LD script: '\\x00\\x00\\x00\\x0c\\x00\\x00\\x00/usr/lib/dyld\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x0d' (0:989)", |
| 3616 | "note: while parsing /?/liba.dylib", | 3616 | // "note: while parsing /?/liba.dylib", |
| 3617 | } }); | 3617 | // "error: unexpected error: parsing input file failed with error InvalidLdScript", |
| | 3618 | // "note: while parsing /?/liba.dylib", |
| | 3619 | // } }); |
| | 3620 | expectLinkErrors(exe, test_step, .{ |
| | 3621 | .contains = "error: unexpected error: parsing input file failed with error InvalidLdScript", |
| | 3622 | }); |
| 3618 | | 3623 | |
| 3619 | return test_step; | 3624 | return test_step; |
| 3620 | } | 3625 | } |