aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorChris Boesch <[email protected]>2024-01-05 13:52:09 +0000
committerChris Boesch <[email protected]>2024-01-05 13:52:09 +0000
commit0d46acfa02d0c29fdfb3651e82a77284dd8f2e00 (patch)
tree4e23f229df4583b0ea16315cb37140d694ac5e17 /test/tests.zig
parentb7dfa4cd1df06536921600be34c6ea40e2780691 (diff)
parent15de3785a36c2e4f06fe573d761a69ed306f5fea (diff)
downloadziglings-0d46acfa02d0c29fdfb3651e82a77284dd8f2e00.tar.xz
ziglings-0d46acfa02d0c29fdfb3651e82a77284dd8f2e00.zip
Merge pull request 'Zig 0.12.0-dev.2043 compatability changes for test runner' (#35) from drglove/exercises:zig-2043-changes into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/35
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 45c075c..0a19277 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -8,8 +8,8 @@ const mem = std.mem;
const Allocator = std.mem.Allocator;
const Child = std.process.Child;
-const Build = std.build;
-const FileSource = std.Build.FileSource;
+const Build = std.Build;
+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.* = .{