Skip to content

Commit a3b3a33

Browse files
committed
cases: remove old incremental case system
We now run incremental tests with `tools/incr-check.zig` (with the actual cases being in `test/incremental/`).
1 parent 5e203e1 commit a3b3a33

File tree

3 files changed

+68
-277
lines changed

3 files changed

+68
-277
lines changed

test/compile_errors.zig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ const Cases = @import("src/Cases.zig");
44

55
pub fn addCases(ctx: *Cases, b: *std.Build) !void {
66
{
7-
const case = ctx.obj("multiline error messages", b.graph.host);
8-
7+
const case = ctx.obj("multiline error message", b.graph.host);
98
case.addError(
109
\\comptime {
1110
\\ @compileError("hello\nworld");
@@ -14,7 +13,10 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
1413
\\:2:5: error: hello
1514
\\ world
1615
});
16+
}
1717

18+
{
19+
const case = ctx.obj("multiline error message with trailing newline", b.graph.host);
1820
case.addError(
1921
\\comptime {
2022
\\ @compileError(

test/nvptx.zig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ fn addPtx(ctx: *Cases, target: std.Build.ResolvedTarget, name: []const u8) *Case
9191
ctx.cases.append(.{
9292
.name = name,
9393
.target = target,
94-
.updates = std.ArrayList(Cases.Update).init(ctx.cases.allocator),
94+
.files = .init(ctx.arena),
95+
.case = null,
9596
.output_mode = .Obj,
96-
.deps = std.ArrayList(Cases.DepModule).init(ctx.cases.allocator),
97+
.deps = .init(ctx.arena),
9798
.link_libc = false,
9899
.emit_bin = false,
99100
.backend = .llvm,

0 commit comments

Comments
 (0)