diff options
Diffstat (limited to 'runtime/9p_io.zig')
| -rw-r--r-- | runtime/9p_io.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/9p_io.zig b/runtime/9p_io.zig index 50011690..7933f87d 100644 --- a/runtime/9p_io.zig +++ b/runtime/9p_io.zig @@ -2241,7 +2241,7 @@ test "a runtime directory that makes the socket's path pass sun_path is refused // The session's own words, where its pane shows them; no listener. try testing.expect(start(testing.io, testing.allocator, p) == null); const pane = p.panes[0].?; - try testing.expect(std.mem.startsWith(u8, pane.msg[0..pane.msg_len], "9p: the socket path is ")); + try testing.expect(std.mem.startsWith(u8, p.messages.saidBy(pane), "9p: the socket path is ")); } test "a runtime directory open to others is refused in words, never a silent session with no socket" { @@ -2258,7 +2258,7 @@ test "a runtime directory open to others is refused in words, never a silent ses try testing.expect(std.mem.indexOf(u8, words, "must be a directory of yours alone (mode 755") != null); try testing.expect(start(testing.io, testing.allocator, p) == null); const pane = p.panes[0].?; - try testing.expect(std.mem.indexOf(u8, pane.msg[0..pane.msg_len], "chmod 700 it") != null); + try testing.expect(std.mem.indexOf(u8, p.messages.saidBy(pane), "chmod 700 it") != null); try testing.expectEqual(@as(c_int, 0), libc.chmod(&rt.directory, 0o700)); try testing.expect(noSocket("x", &buf) == null); } |
