diff options
Diffstat (limited to 'test/process')
| -rw-r--r-- | test/process/terminals.zig | 7 | ||||
| -rw-r--r-- | test/process/tree.zig | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/test/process/terminals.zig b/test/process/terminals.zig index 250c4fb0..24772ced 100644 --- a/test/process/terminals.zig +++ b/test/process/terminals.zig @@ -212,17 +212,12 @@ fn namedOnce(gpa: std.mem.Allocator, exe: [:0]const u8) !void { const c = try process.Conn.dial(gpa, d.socket()); defer c.deinit(gpa); const root = d.root(); - try expectEqual(@as(c_int, 0), libc.mkdir(try std.fmt.allocPrintSentinel(a, "{s}/sub", .{root}, 0), 0o755)); - // A look at a directory starts a terminal there (DirLook terminal); - // DirLook pane, the default, lists it in a pane. - try c.write("/ctl", "DirLook terminal\n"); var made: std.ArrayList(u32) = .empty; - try made.append(a, try c.look(a, f.at("{s}/sub", .{root}), null)); const before = try serials(a, c); try c.write("/pane/1/ctl", "Term\n"); if (shell(a, "command -v fish >/dev/null", .{}) == 0) try c.write("/pane/1/ctl", "Term fish\n"); for (try serials(a, c)) |s| if (std.mem.indexOfScalar(u32, before, s) == null) try made.append(a, s); - try expect(made.items.len >= 2); + try expect(made.items.len >= 1); process.sleep(1500); // their shells start and say where they are // A shell started again by pty/ctl exec: named as it was. try c.write(f.at("/pane/{d}/pty/ctl", .{made.items[0]}), "exec\n"); diff --git a/test/process/tree.zig b/test/process/tree.zig index 27b51bf1..70b2a89c 100644 --- a/test/process/tree.zig +++ b/test/process/tree.zig @@ -258,7 +258,7 @@ fn discovery(gpa: std.mem.Allocator, exe: [:0]const u8) !void { if (std.mem.eql(u8, which, "arg")) which = w.next().?; try expect(contains(&.{ "root", "pane", "both" }, which)); } - try expect(row(commands, "Placement arg root acme,pardes")); + try expect(row(commands, "Pager arg root pardes,off")); try expect(std.mem.endsWith(u8, commands, "\n")); try expectEqual(commands.len, (try c.stat("/commands")).length); try c.write(f.at("/pane/{d}/ctl", .{first}), "Msg said through ctl\n"); |
