diff options
author | Manlio Perillo <manlio.perillo@gmail.com> | 2023-05-04 19:01:48 +0200 |
---|---|---|
committer | Manlio Perillo <manlio.perillo@gmail.com> | 2023-05-04 19:01:48 +0200 |
commit | eda73b2fa8dcb5ca4fc96903f8d1f46ac464acab (patch) | |
tree | dcf29433959cfceb51b819b46009e3bc59dfce3b /test/tests.zig | |
parent | 277c95db7af09732f5179677fcbd191e36fefc81 (diff) |
test: remove obsolete comment in the heal function
Remove the comment about using POSIX patch variant, since we now use the
-s option.
Diffstat (limited to 'test/tests.zig')
-rw-r--r-- | test/tests.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tests.zig b/test/tests.zig index dbf237b..1fda49d 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -7,6 +7,7 @@ const fs = std.fs; const mem = std.mem; const Allocator = std.mem.Allocator; +const Child = std.process.Child; const Build = std.build; const FileSource = std.Build.FileSource; const Reader = fs.File.Reader; @@ -363,7 +364,6 @@ fn heal(allocator: Allocator, exercises: []const Exercise, work_path: []const u8 for (exercises) |ex| { const name = ex.name(); - // Use the POSIX patch variant. const file = try join(allocator, &.{ exercises_path, ex.main_file }); const patch = b: { const patch_name = try fmt.allocPrint(allocator, "{s}.patch", .{name}); @@ -373,7 +373,7 @@ fn heal(allocator: Allocator, exercises: []const Exercise, work_path: []const u8 const argv = &.{ "patch", "-i", patch, "-o", output, "-s", file }; - var child = std.process.Child.init(argv, allocator); + var child = Child.init(argv, allocator); _ = try child.spawnAndWait(); } } |