diff options
Diffstat (limited to 'test/snapshot.zig')
| -rw-r--r-- | test/snapshot.zig | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/snapshot.zig b/test/snapshot.zig index 1bd4dabf..95d07cc7 100644 --- a/test/snapshot.zig +++ b/test/snapshot.zig @@ -67,7 +67,7 @@ const std = @import("std"); const libc = std.c; const ghostty_vt = @import("ghostty-vt"); const eh = @import("e2e_harness.zig"); -const Client = @import("9p_io").Client; +const process = @import("process.zig"); // This harness parses the app's output with its OWN ghostty-vt, which narrates // every sequence it does not implement — vaxis's startup capability probes @@ -1289,10 +1289,9 @@ const Screen9p = struct { }; fn snap9p(arena: std.mem.Allocator, h: *eh.Harness, label: []const u8, prev: *Prev) ![]u8 { - var dial_buf: [24]u8 = undefined; - const dial = try std.fmt.bufPrint(&dial_buf, "{d}", .{h.pid}); - const bytes = try Client.read(gpa, dial, "/screen", "/screen"); - defer gpa.free(bytes); + var files = process.of(gpa, h); + defer files.deinit(); + const bytes = try files.read("/screen"); const parsed = try std.json.parseFromSlice(Screen9p, gpa, bytes, .{}); defer parsed.deinit(); const screen = parsed.value; |
