Commit 83b7dbe52f
Changed files (5)
test
cases
aarch64-macos
x86_64-linux
x86_64-macos
x86_64-windows
src
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'
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
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'
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
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);