diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-01-06 14:26:14 +0100 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-01-06 14:26:14 +0100 |
| commit | d776e07af2501553abe3191499c67223c5dc3632 (patch) | |
| tree | c457ecaea36d2d6b5085d0bd40ed3f3355abcd50 /test | |
| parent | 62122973358122463823b87f6c9c5ac47d449a08 (diff) | |
| parent | a04f945d3693938fc663e45b59397b586f8592f0 (diff) | |
Merge pull request 'fix build errors in new Zig compiler' (#344) from prasefia/ziglings:main into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/344
Diffstat (limited to 'test')
| -rw-r--r-- | test/tests.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/tests.zig b/test/tests.zig index 36fabfa..5e84ef7 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -6,7 +6,7 @@ const fmt = std.fmt; const mem = std.mem; const Allocator = std.mem.Allocator; -const Child = std.process.Child; +const Process = std.process; const Build = std.Build; const Step = Build.Step; const RunStep = Build.RunStep; @@ -396,8 +396,7 @@ fn heal(allocator: Allocator, exercises: []const Exercise, work_path: []const u8 const argv = &.{ "patch", "-i", patch, "-o", output, "-s", file }; - var child = Child.init(argv, allocator); - _ = try child.spawnAndWait(io); + _ = try Process.run(allocator, io, .{ .argv = argv }); } } |
