summaryrefslogtreecommitdiff
path: root/dev/file_watch.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 06:33:52 -0300
committerGabriel Schneider <[email protected]>2026-11-20 06:33:53 -0300
commitffe05cceb897b3ae6a6d36491f9318a8aa3426e7 (patch)
tree352414579559060b3e8486af34e29d49fd5df781 /dev/file_watch.zig
parent5b7124d10f9b2db8d1c5e99eacb9b6d2fffff0cc (diff)
parenta403340ec5c90238b136ca85fc64d65809b29a65 (diff)
downloadpardes-ffe05cceb897b3ae6a6d36491f9318a8aa3426e7.tar.gz
pardes-ffe05cceb897b3ae6a6d36491f9318a8aa3426e7.zip
integration: the build's second pass on the handle and the devices once: pardes-build-pass2 (pardes-isolate and the tree-sitter=disabled tier deleted; one option, grammars = none | minimal | full; build.zig with the consumer's lines as its head comment; test/lib -> test/consumer; the manual's library section) and pardes-merge31, merged without a textual conflict; one line follows a deletion: dev/file_watch.zig's end-to-end test of a session's watches (written since on the base) guarded on fs.platform_has_fs, which the first of these changes deleted: the guard reads as the file's other tests' (comptime !supported); tui core-test 857/1008 (151 skipped), shell-test 1048/1051, the window builds; the coordinator's gate in the ledger (reorg/merge32)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev/file_watch.zig')
-rw-r--r--dev/file_watch.zig14
1 files changed, 7 insertions, 7 deletions
diff --git a/dev/file_watch.zig b/dev/file_watch.zig
index 58229d90..c575f436 100644
--- a/dev/file_watch.zig
+++ b/dev/file_watch.zig
@@ -761,7 +761,7 @@ pub fn identify(io: std.Io, path: []const u8) !Identity {
}
test "a restored file is watched again: one clean takes what its file became since the dump, one unsaved keeps its text" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const io = std.testing.io;
const gpa = std.testing.allocator;
for ([_]bool{ false, true }) |dirty| {
@@ -803,7 +803,7 @@ test "a restored file is watched again: one clean takes what its file became sin
}
test "a Zerox twin's save wakes its other twin's watch, which says nothing: their text is the file's already" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const io = std.testing.io;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
@@ -835,7 +835,7 @@ test "a Zerox twin's save wakes its other twin's watch, which says nothing: thei
}
test "ordinary file watches still reconcile changes between open and watch" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const io = std.testing.io;
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});
@@ -870,7 +870,7 @@ test "ordinary file watches still reconcile changes between open and watch" {
}
test "a kind's pane whose file changed between its open and its watch opens again from it" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const io = std.testing.io;
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});
@@ -899,7 +899,7 @@ test "a kind's pane whose file changed between its open and its watch opens agai
}
test "explicit OS directory watches refresh prefix-preserving listings" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const gpa = std.testing.allocator;
const core = try pardes.Pardes.init(gpa, .{ .tty_only = true });
defer core.deinit();
@@ -1012,7 +1012,7 @@ test "theme watch reloads valid ZON and keeps the last theme across a bad save"
}
test "a watched file deleted wakes the watch at once, and its pane says so" {
- if (comptime !supported or !filesystem.platform_has_fs or builtin.os.tag != .linux) return;
+ if (comptime !supported or builtin.os.tag != .linux) return;
const io = std.testing.io;
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});
@@ -1045,7 +1045,7 @@ test "a watched file deleted wakes the watch at once, and its pane says so" {
}
test "a session's watches: a marked file's change posted to the queue, the reader ended at the end" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const io = std.testing.io;
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});