diff options
Diffstat (limited to 'test/process/terminals.zig')
| -rw-r--r-- | test/process/terminals.zig | 7 |
1 files changed, 1 insertions, 6 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"); |
