From f2773d42c1c4cc8750bfe6298397f2aa4a93340d Mon Sep 17 00:00:00 2001 From: Alessandro De Blasis Date: Mon, 23 Mar 2026 13:31:35 +0100 Subject: [PATCH] windows: skip expandHomeUnix test on Windows expandHomeUnix is a Unix-internal function that is never called on Windows. The public expandHome function returns the path unchanged on Windows since ~/ is not a standard Windows idiom. The test calls expandHomeUnix directly, which invokes home() and expects Unix-style forward-slash separators. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/os/homedir.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/homedir.zig b/src/os/homedir.zig index 14a4558cc..9e0420f4a 100644 --- a/src/os/homedir.zig +++ b/src/os/homedir.zig @@ -149,6 +149,8 @@ fn expandHomeUnix(path: []const u8, buf: []u8) ExpandError![]const u8 { } test "expandHomeUnix" { + if (builtin.os.tag == .windows) return error.SkipZigTest; + const testing = std.testing; const allocator = testing.allocator; var buf: [std.fs.max_path_bytes]u8 = undefined; -- 2.51.2