diff options
Diffstat (limited to 'src/host_io.zig')
| -rw-r--r-- | src/host_io.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/host_io.zig b/src/host_io.zig index 1a328ad5..bbf72d8c 100644 --- a/src/host_io.zig +++ b/src/host_io.zig @@ -9,6 +9,7 @@ const filesystem = @import("fs.zig"); const file_watch = @import("file_watch.zig"); const replica = @import("replica.zig"); const daemon = @import("daemon.zig"); +const panes = @import("panes.zig"); pub const Host = struct { ctx: ?*anyopaque = null, @@ -3282,7 +3283,7 @@ test "a command pane's child is its shell running the one line, and its exit sta defer core.deinit(); while (core.nextEffect()) |_| {} const id = core.freeSlot().?; - _ = try core.newCommand(id, "", "printf 'said '; exit 7"); + _ = try panes.newCommand(core, id, "", "printf 'said '; exit 7"); while (core.nextEffect()) |_| {} const rcs: Shell.PromptFiles = .{}; const child = try forkShell(core, id, &rcs, "/bin/sh", "", 24, 80); @@ -3313,7 +3314,7 @@ test "a command's exit is its process's, told by its watcher, whether or not its .{ .line = "exec </dev/null >/dev/null 2>&1; sleep 0.3; exit 5", .status = 5 }, }) |c| { const id = core.freeSlot().?; - _ = try core.newCommand(id, "", c.line); + _ = try panes.newCommand(core, id, "", c.line); while (core.nextEffect()) |_| {} const child = try forkShell(core, id, &rcs, "/bin/sh", "", 24, 80); defer _ = libc.close(child.file.handle); @@ -3353,7 +3354,7 @@ test "a command's background job outlives it and its pty, and Kill stops its who .{ .line = "(sleep 0.4; touch killed) & sleep 5", .kill = true, .made = false }, }) |c| { const id = core.freeSlot().?; - _ = try core.newCommand(id, dir, c.line); + _ = try panes.newCommand(core, id, dir, c.line); while (core.nextEffect()) |_| {} const child = try forkShell(core, id, &rcs, "/bin/sh", dir, 24, 80); if (c.kill) { |
