diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-30 17:44:26 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-30 17:44:26 -0300 |
| commit | e179cc44fe5060c76a5b00c41e53f11209f5acd9 (patch) | |
| tree | b8a1d5fa276a82c168b007df11cccc2676ea729b /src/ninep/ctl.zig | |
| parent | 5949dc4d7ec41116e5fd6fc86fced81b2f2de78e (diff) | |
| download | pardes-e179cc44fe5060c76a5b00c41e53f11209f5acd9.tar.gz pardes-e179cc44fe5060c76a5b00c41e53f11209f5acd9.zip | |
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.
Diffstat (limited to 'src/ninep/ctl.zig')
| -rw-r--r-- | src/ninep/ctl.zig | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
