aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/tests.zig
diff options
context:
space:
mode:
authordrglove <drglove@noreply.codeberg.org>2024-01-05 08:17:09 +0000
committerdrglove <drglove@noreply.codeberg.org>2024-01-05 08:17:09 +0000
commit7a0cbb131f3cb93b6ef93587999bb2dbd1daeabe (patch)
tree3e60f487dc961510f0ac7233eac0fe3146a7fe41 /test/tests.zig
parent528a8645f8408081615c180a520e41b83041c442 (diff)
Use std.Build.LazyPath over now removed std.Build.FileSource.
See corresponding ziglang change here: https://github.com/ziglang/zig/issues/16353
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/tests.zig b/test/tests.zig
index d90b049..0a19277 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -9,7 +9,7 @@ const mem = std.mem;
const Allocator = std.mem.Allocator;
const Child = std.process.Child;
const Build = std.Build;
-const FileSource = std.Build.FileSource;
+const LazyPath = std.Build.LazyPath;
const Reader = fs.File.Reader;
const RunStep = std.Build.RunStep;
const Step = Build.Step;
@@ -132,9 +132,9 @@ fn createCase(b: *Build, name: []const u8) *Step {
const CheckNamedStep = struct {
step: Step,
exercise: Exercise,
- stderr: FileSource,
+ stderr: LazyPath,
- pub fn create(owner: *Build, exercise: Exercise, stderr: FileSource) *CheckNamedStep {
+ pub fn create(owner: *Build, exercise: Exercise, stderr: LazyPath) *CheckNamedStep {
const self = owner.allocator.create(CheckNamedStep) catch @panic("OOM");
self.* = .{
.step = Step.init(.{
@@ -180,12 +180,12 @@ const CheckNamedStep = struct {
const CheckStep = struct {
step: Step,
exercises: []const Exercise,
- stderr: FileSource,
+ stderr: LazyPath,
pub fn create(
owner: *Build,
exercises: []const Exercise,
- stderr: FileSource,
+ stderr: LazyPath,
) *CheckStep {
const self = owner.allocator.create(CheckStep) catch @panic("OOM");
self.* = .{