diff --git a/test/cases/aarch64-macos/hello_world_with_updates.0.zig b/test/cases/aarch64-macos/hello_world_with_updates.0.zig index 90aa14ab65..f939a7fa71 100644 --- a/test/cases/aarch64-macos/hello_world_with_updates.0.zig +++ b/test/cases/aarch64-macos/hello_world_with_updates.0.zig @@ -2,4 +2,4 @@ // output_mode=Exe // target=aarch64-macos // -// :110:9: error: root struct of file 'tmp' has no member named 'main' +// :?:?: error: root struct of file 'tmp' has no member named 'main' diff --git a/test/cases/x86_64-linux/hello_world_with_updates.0.zig b/test/cases/x86_64-linux/hello_world_with_updates.0.zig index e498eacf93..c330234fdb 100644 --- a/test/cases/x86_64-linux/hello_world_with_updates.0.zig +++ b/test/cases/x86_64-linux/hello_world_with_updates.0.zig @@ -2,7 +2,7 @@ // output_mode=Exe // target=x86_64-linux // -// :604:45: error: root struct of file 'tmp' has no member named 'main' -// :553:12: note: called from here -// :503:36: note: called from here -// :466:17: note: called from here +// :?:?: error: root struct of file 'tmp' has no member named 'main' +// :?:?: note: called from here +// :?:?: note: called from here +// :?:?: note: called from here diff --git a/test/cases/x86_64-macos/hello_world_with_updates.0.zig b/test/cases/x86_64-macos/hello_world_with_updates.0.zig index d91bd9dc91..7fc13a4fa5 100644 --- a/test/cases/x86_64-macos/hello_world_with_updates.0.zig +++ b/test/cases/x86_64-macos/hello_world_with_updates.0.zig @@ -2,4 +2,4 @@ // output_mode=Exe // target=x86_64-macos // -// :110:9: error: root struct of file 'tmp' has no member named 'main' +// :?:?: error: root struct of file 'tmp' has no member named 'main' diff --git a/test/cases/x86_64-windows/hello_world_with_updates.0.zig b/test/cases/x86_64-windows/hello_world_with_updates.0.zig index 320057b86e..d322de2d1b 100644 --- a/test/cases/x86_64-windows/hello_world_with_updates.0.zig +++ b/test/cases/x86_64-windows/hello_world_with_updates.0.zig @@ -2,6 +2,6 @@ // output_mode=Exe // target=x86_64-windows // -// :604:45: error: root struct of file 'tmp' has no member named 'main' -// :553:12: note: called from here -// :389:65: note: called from here +// :?:?: error: root struct of file 'tmp' has no member named 'main' +// :?:?: note: called from here +// :?:?: note: called from here diff --git a/test/src/Cases.zig b/test/src/Cases.zig index c3a4c1df47..890f4f6f89 100644 --- a/test/src/Cases.zig +++ b/test/src/Cases.zig @@ -1045,8 +1045,7 @@ pub fn main() !void { var ctx = Cases.init(gpa, arena); var test_it = TestIterator{ .filenames = filenames.items }; - while (test_it.next()) |maybe_batch| { - const batch = maybe_batch orelse break; + while (try test_it.next()) |batch| { const strategy: TestStrategy = if (batch.len > 1) .incremental else .independent; var cases = std.ArrayList(usize).init(arena); @@ -1084,6 +1083,11 @@ pub fn main() !void { for (cases.items) |case_index| { const case = &ctx.cases.items[case_index]; + if (strategy == .incremental and case.backend == .stage2 and case.target.getCpuArch() == .x86_64 and !case.link_libc and case.target.getOsTag() != .plan9) { + // https://github.com/ziglang/zig/issues/15174 + continue; + } + switch (manifest.type) { .compile => { case.addCompile(src); @@ -1115,8 +1119,6 @@ pub fn main() !void { } } } - } else |err| { - return err; } return runCases(&ctx, zig_exe_path);