summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tests.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 126a1cd..5f64f8e 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -50,7 +50,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step {
case_step.dependOn(&verify.step);
}
- const cleanup = b.addRemoveDirTree(tmp_path);
+ const cleanup = b.addRemoveDirTree(.{ .src_path = .{ .owner = b, .sub_path = tmp_path } });
cleanup.step.dependOn(case_step);
step.dependOn(&cleanup.step);
@@ -82,7 +82,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step {
const verify = CheckStep.create(b, exercises, stderr);
verify.step.dependOn(&cmd.step);
- const cleanup = b.addRemoveDirTree(tmp_path);
+ const cleanup = b.addRemoveDirTree(.{ .src_path = .{ .owner = b, .sub_path = tmp_path } });
cleanup.step.dependOn(&verify.step);
step.dependOn(&cleanup.step);
@@ -150,7 +150,7 @@ const CheckNamedStep = struct {
return self;
}
- fn make(step: *Step, _: std.Progress.Node) !void {
+ fn make(step: *Step, _: Step.MakeOptions) !void {
const b = step.owner;
const self: *CheckNamedStep = @alignCast(@fieldParentPtr("step", step));
const ex = self.exercise;
@@ -202,7 +202,7 @@ const CheckStep = struct {
return self;
}
- fn make(step: *Step, _: std.Progress.Node) !void {
+ fn make(step: *Step, _: Step.MakeOptions) !void {
const b = step.owner;
const self: *CheckStep = @alignCast(@fieldParentPtr("step", step));
const exercises = self.exercises;
@@ -325,7 +325,7 @@ const FailStep = struct {
return self;
}
- fn make(step: *Step, _: std.Progress.Node) !void {
+ fn make(step: *Step, _: Step.MakeOptions) !void {
const b = step.owner;
const self: *FailStep = @alignCast(@fieldParentPtr("step", step));
@@ -368,7 +368,7 @@ const HealStep = struct {
return self;
}
- fn make(step: *Step, _: std.Progress.Node) !void {
+ fn make(step: *Step, _: Step.MakeOptions) !void {
const b = step.owner;
const self: *HealStep = @alignCast(@fieldParentPtr("step", step));