From 2e4868beb25eb81f7b21a9ad481b5b121c65c4c8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 3 Nov 2026 17:38:42 -0300 Subject: test: what the review of the ninep migration found the moved tests no longer checked, back through the 9P tree: a stat of /focus, /ctl and /exec says the length a read gives (0 for an empty /focus), an omode-0 open of a pane's ctl cannot lock, and a look at a line past the end logs that it has no such line; each checked to fail against a break (/focus, /ctl and /exec stat 0, a read-only open's lock taken, the past-end line's words changed) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/behaviour/root_ctl.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'test/behaviour/root_ctl.zig') diff --git a/test/behaviour/root_ctl.zig b/test/behaviour/root_ctl.zig index f7ebbbb9..90838d90 100644 --- a/test/behaviour/root_ctl.zig +++ b/test/behaviour/root_ctl.zig @@ -42,6 +42,7 @@ test "root-ctl: the root ctl reads the settings as a write takes them, and takes var s = try Session.initFile(std.testing.allocator, "x\n"); defer s.deinit(); const settings = try s.read("/ctl"); + try std.testing.expectEqual(@as(u64, settings.len), (try s.stat("/ctl")).size); try std.testing.expect(has(settings, "Verbose on\n")); try std.testing.expect(has(settings, "LocationsConfig ")); try std.testing.expect(has(settings, "CallstackDepth 8\n")); -- cgit v1.3