From e179cc44fe5060c76a5b00c41e53f11209f5acd9 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 17:44:26 -0300 Subject: Repair macOS validation after the upstream update Keep cross-platform documentation metadata alive only during its owning test, and recognize leaders from the other platform's published builtin lists. Use canonical filesystem paths on Darwin, keep the procfs permission assertion Linux-specific, and set the scene's level through the current API. --- src/ninep/ctl.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ninep') diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index 9cb96667..d0d9b0b4 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -4677,7 +4677,8 @@ test "pager answers its +Pager on the open that asked, whatever another client e try testing.expect(p.paneBySerial(paged) != null); _ = call(p, .{ .tag = 14, .op = .release, .node = pager, .handle = resolved, .opened = true }); // One that may not be written is refused, permission denied. - try testing.expectEqual(E.PERM, wr(p, pager, "/proc/1\n").errno()); + if (comptime @import("builtin").os.tag == .linux) + try testing.expectEqual(E.PERM, wr(p, pager, "/proc/1\n").errno()); // One directory a write, absolute, and there. try testing.expectEqual(E.INVAL, wr(p, pager, "/a\n/b\n").errno()); // One directory an open: one refused is not followed by another, as a -- cgit v1.3