summaryrefslogtreecommitdiff
path: root/src/ninep/testing.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep/testing.zig')
-rw-r--r--src/ninep/testing.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ninep/testing.zig b/src/ninep/testing.zig
index 6ea40956..fce77f10 100644
--- a/src/ninep/testing.zig
+++ b/src/ninep/testing.zig
@@ -19,6 +19,7 @@ pub const Answer = struct {
winsize: ?struct { cols: u16, rows: u16 } = null,
signal: ?pardes.PtySignal = null,
spawned: bool = false,
+ closed: bool = false,
pub fn pty(a: *const Answer) []const u8 {
return a.pty_buf[0..a.pty_len];
@@ -44,6 +45,7 @@ pub fn call(p: *Pardes, req: Req) Answer {
},
.resize_pty => |r| ans.winsize = .{ .cols = r.cols, .rows = r.rows },
.signal_pty => |s| ans.signal = s.sig,
+ .close_pty => ans.closed = true,
.spawn => ans.spawned = true,
else => {},
};