summaryrefslogtreecommitdiff
path: root/test/fs_namespace.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs_namespace.zig')
-rw-r--r--test/fs_namespace.zig24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/fs_namespace.zig b/test/fs_namespace.zig
index 3eba6639..ec94b509 100644
--- a/test/fs_namespace.zig
+++ b/test/fs_namespace.zig
@@ -98,9 +98,6 @@ test "transactional restore preserves host capabilities and advances pane identi
try std.testing.expect(restored.paneBySerial(pane.serial) == null);
try std.testing.expectEqual(p.screen_w, restored.screen_w);
try std.testing.expectEqual(p.screen_h, restored.screen_h);
- try std.testing.expectEqualStrings(p.fs.socket_path, restored.fs.socket_path);
- try std.testing.expectEqualDeep(p.fs.tcp_address, restored.fs.tcp_address);
- try std.testing.expectEqualDeep(p.fs.quic_address, restored.fs.quic_address);
try std.testing.expect(p.panes[0] == pane);
try std.testing.expectEqualStrings("before\n", pane.file.?.content);
try std.testing.expectError(error.BadDumpMagic, p.restore(
@@ -112,27 +109,6 @@ test "transactional restore preserves host capabilities and advances pane identi
try std.testing.expectEqualStrings("/tmp/session.sock", p.fs.socket_path);
}
-test "same-session identity is available before an initial mounted file is opened" {
- if (!filesystem.platform_has_fs) return error.SkipZigTest;
- const gpa = std.testing.allocator;
- var tmp = std.testing.tmpDir(.{});
- defer tmp.cleanup();
- try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "file.txt", .data = "no socket required\n" });
- var buf: [4096]u8 = undefined;
- const len = try tmp.dir.realPathFile(std.testing.io, "file.txt", &buf);
- const path = try std.fmt.allocPrint(gpa, "/n/own/os{s}", .{buf[0..len]});
- defer gpa.free(path);
- const p = try pardes.Pardes.init(gpa, .{
- .file = path,
- .mounts = &.{.{ .name = "own", .dial = "/tmp/not-listening.sock" }},
- .ninep_identity = .{ .socket_path = "/tmp/not-listening.sock" },
- });
- defer p.deinit();
- try std.testing.expectEqualStrings(path, p.panes[0].?.file.?.path);
- try std.testing.expectEqualStrings("no socket required\n", p.panes[0].?.file.?.content);
- try std.testing.expectEqualStrings("", p.opts.ninep_identity.socket_path);
-}
-
test "filesystem resolves OS first then virtual with explicit mounts and parent paths" {
if (!filesystem.platform_has_fs) return error.SkipZigTest;
const gpa = std.testing.allocator;