aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-01-13 12:49:54 +0100
committerJakub Konka <kubkon@jakubkonka.com>2024-01-24 12:34:39 +0100
commitaa50bca1516f6fc2c9d6c7ca66ef8585b4b5e197 (patch)
treeac1a0bd03f45f8b90f471a8e396c47beee399430 /test
parent56303d770e8330eb47c12a395ce45e3d448f892d (diff)
downloadzig-aa50bca1516f6fc2c9d6c7ca66ef8585b4b5e197.tar.gz
zig-aa50bca1516f6fc2c9d6c7ca66ef8585b4b5e197.zip
test/link/elf: make invalid input file test less janky
Diffstat (limited to 'test')
-rw-r--r--test/link/elf.zig17
1 files changed, 11 insertions, 6 deletions
diff --git a/test/link/elf.zig b/test/link/elf.zig
index 0d76a5b64b..1f5c1978ce 100644
--- a/test/link/elf.zig
+++ b/test/link/elf.zig
@@ -3609,12 +3609,17 @@ fn testUnknownFileTypeError(b: *Build, opts: Options) *Step {
exe.linkLibrary(dylib);
exe.linkLibC();
- 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",
- "unexpected error: parsing input file failed with error InvalidLdScript",
- "note: while parsing /?/liba.dylib",
- } });
+ // TODO: improve the test harness to be able to selectively match lines in error output
+ // while avoiding jankiness
+ // expectLinkErrors(exe, test_step, .{ .exact = &.{
+ // "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)",
+ // "note: while parsing /?/liba.dylib",
+ // "error: unexpected error: parsing input file failed with error InvalidLdScript",
+ // "note: while parsing /?/liba.dylib",
+ // } });
+ expectLinkErrors(exe, test_step, .{
+ .contains = "error: unexpected error: parsing input file failed with error InvalidLdScript",
+ });
return test_step;
}