summaryrefslogtreecommitdiff
path: root/src/builtins_json.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 12:32:23 -0300
committerGabriel Schneider <[email protected]>2026-10-29 13:11:16 -0300
commit7e6834ba5eff5c0e61891ec1935e5e0ca8291c2f (patch)
treeb64162d23d96aea1cff55cdb1899c026d9522ec1 /src/builtins_json.zig
parent6b89fed454fd56a3af4b576646538b45d3315146 (diff)
downloadpardes-7e6834ba5eff5c0e61891ec1935e5e0ca8291c2f.tar.gz
pardes-7e6834ba5eff5c0e61891ec1935e5e0ca8291c2f.zip
tests on FreeBSD: Linux's /proc/1 fixtures, the builtins lists, daemon.py and fs.py without /proc
- The refusing directory some tests name is Linux's /proc/1/root: that part skips elsewhere. The committed builtins-*.json are Linux builds' (Tty9p): their check skips, and a key the docs give a word this build leaves out is found in the other's list. - kitty: a shared memory object is sized before it is written (FreeBSD's write does not grow it); a FIFO in /dev/shm is Linux's case. - daemon.py asks ps and procstat where there is no /proc, and finds bash on PATH. fs.py runs printenv once a name, and skips two permission checks as root, who searches and writes anywhere. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/builtins_json.zig')
-rw-r--r--src/builtins_json.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/builtins_json.zig b/src/builtins_json.zig
index 4440130d..3598a3e2 100644
--- a/src/builtins_json.zig
+++ b/src/builtins_json.zig
@@ -66,7 +66,9 @@ pub fn write(w: *std.Io.Writer) !void {
}
test "docs/typ/builtins-<platform>.json is what the registry says now" {
- // a terminal build checks its file, a window build its own
+ // a terminal build checks its file, a window build its own; both are
+ // Linux builds' lists (Tty9p is Linux's)
+ if (comptime @import("builtin").os.tag != .linux) return error.SkipZigTest;
const file = switch (pardes.platform) {
.tty => "builtins-tty.json",
.gui => "builtins-gui.json",