From ec5c2d4ce36394b1d675519a824c101ca9a82fa7 Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Fri, 26 Dec 2025 17:18:12 -0800 Subject: [PATCH] Skip posix-specific standalone test on Windows --- test/standalone/posix/cwd.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/standalone/posix/cwd.zig b/test/standalone/posix/cwd.zig index 1bafdfebac73ab9381035f2a02973a33ae32a4cf..3bd1ac066ae48bf8592227ee05fee20dea78cb36 100644 --- a/test/standalone/posix/cwd.zig +++ b/test/standalone/posix/cwd.zig @@ -8,9 +8,10 @@ const assert = std.debug.assert; const path_max = std.fs.max_path_bytes; pub fn main() !void { - if (builtin.target.os.tag == .wasi) { - // WASI doesn't support changing the working directory at all. - return; + switch (builtin.target.os.tag) { + .wasi => return, // WASI doesn't support changing the working directory at all. + .windows => return, // POSIX is not implemented by Windows + else => {}, } var debug_allocator: std.heap.DebugAllocator(.{}) = .{}; -- 2.54.0