From e4e096c680fc2c8b577cd64bbffc26baf250551a Mon Sep 17 00:00:00 2001 From: Manlio Perillo Date: Tue, 9 May 2023 11:00:16 +0200 Subject: build: make literal paths portable Use fs.path.sep_str instead of a slash, in literal paths. --- test/tests.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/tests.zig') diff --git a/test/tests.zig b/test/tests.zig index 702d313..2fd5ec4 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -435,10 +435,11 @@ const HealStep = struct { /// Heals all the exercises. fn heal(allocator: Allocator, exercises: []const Exercise, work_path: []const u8) !void { + const sep = std.fs.path.sep_str; const join = fs.path.join; const exercises_path = "exercises"; - const patches_path = "patches/patches"; + const patches_path = "patches" ++ sep ++ "patches"; for (exercises) |ex| { const name = ex.name(); -- cgit v1.2.3-70-g09d2