aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/tests.zig
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2023-05-09 11:00:16 +0200
committerManlio Perillo <manlio.perillo@gmail.com>2023-05-09 11:11:11 +0200
commite4e096c680fc2c8b577cd64bbffc26baf250551a (patch)
tree55be1970342d292f6e91f6f1d0e9cc8f1787f1fa /test/tests.zig
parent728402c64ff1a4ed1e16c4adac704193e973dc37 (diff)
build: make literal paths portable
Use fs.path.sep_str instead of a slash, in literal paths.
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig3
1 files changed, 2 insertions, 1 deletions
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();