| ... | ... | @@ -1010,7 +1010,7 @@ pub const TestContext = struct { |
| 1010 | 1010 | /// that if any errors occur the caller knows it happened during this file. |
| 1011 | 1011 | current_file: *[]const u8, |
| 1012 | 1012 | ) !void { |
| 1013 | | var cases = std.ArrayList(*Case).init(ctx.arena); |
| 1013 | var cases = std.ArrayList(usize).init(ctx.arena); |
| 1014 | 1014 | |
| 1015 | 1015 | var it = dir.iterate(); |
| 1016 | 1016 | var filenames = std.ArrayList([]const u8).init(ctx.arena); |
| ... | ... | @@ -1081,8 +1081,8 @@ pub const TestContext = struct { |
| 1081 | 1081 | name_prefix, |
| 1082 | 1082 | try target.zigTriple(ctx.arena), |
| 1083 | 1083 | }); |
| 1084 | | const case = try ctx.cases.addOne(); |
| 1085 | | case.* = .{ |
| 1084 | const next = ctx.cases.items.len; |
| 1085 | try ctx.cases.append(.{ |
| 1086 | 1086 | .name = name, |
| 1087 | 1087 | .target = target, |
| 1088 | 1088 | .backend = backend, |
| ... | ... | @@ -1090,13 +1090,14 @@ pub const TestContext = struct { |
| 1090 | 1090 | .is_test = is_test, |
| 1091 | 1091 | .output_mode = output_mode, |
| 1092 | 1092 | .files = std.ArrayList(TestContext.File).init(ctx.cases.allocator), |
| 1093 | | }; |
| 1094 | | try cases.append(case); |
| 1093 | }); |
| 1094 | try cases.append(next); |
| 1095 | 1095 | } |
| 1096 | 1096 | } |
| 1097 | 1097 | } |
| 1098 | 1098 | |
| 1099 | | for (cases.items) |case| { |
| 1099 | for (cases.items) |case_index| { |
| 1100 | const case = &ctx.cases.items[case_index]; |
| 1100 | 1101 | switch (manifest.@"type") { |
| 1101 | 1102 | .@"error" => { |
| 1102 | 1103 | const errors = try manifest.trailingAlloc(ctx.arena); |