diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 09:24:59 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 09:24:59 -0300 |
| commit | 35b2c0efc6c43ba44640f4432d98734000f8887a (patch) | |
| tree | 70a49e53f9b7f50e75e347af15efbf5f6ce1e10a /test/process/terminals.zig | |
| parent | 446cde19a6b6fb7125fc749608cc12b7452dad6e (diff) | |
| parent | 58337a33e4661d951f25a844900e95fde3e804a8 (diff) | |
| download | pardes-35b2c0efc6c43ba44640f4432d98734000f8887a.tar.gz pardes-35b2c0efc6c43ba44640f4432d98734000f8887a.zip | |
integration: five tests that timed what the product does not promise, on the first client and the pair: pardes-test-robust-2 (terminals' drive with Verbose off: Term's own name on the message row for 800 ms was in the screen the test took as its before; exec-bigdrag's 8 s cap; daemon.py's hello in one write, its by_hash replies given 60 s, its Adopt after the daemon lists the session) and pardes-merge34, merged without a textual conflict; test files only; the coordinator's gate in the ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/process/terminals.zig')
| -rw-r--r-- | test/process/terminals.zig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/process/terminals.zig b/test/process/terminals.zig index 24772ced..d9c3bcca 100644 --- a/test/process/terminals.zig +++ b/test/process/terminals.zig @@ -262,7 +262,9 @@ fn rawKey(gpa: std.mem.Allocator, exe: [:0]const u8) !void { /// thousand: nothing printed is nothing kept), then a probe typed and /// taken back with ^U. fn drive(gpa: std.mem.Allocator, exe: [:0]const u8, script: []const u8, key: ?u8, rows: usize) !void { - var d = try process.Detached.start(gpa, exe, "agent", .{}); + // No builtin announces itself: Term's name would linger on the screen + // (MessageLinger, 800 ms) and go between `before` and ^U's answer. + var d = try process.Detached.start(gpa, exe, "agent", .{ .init = "Verbose off\n" }); defer d.deinit(); const f = &d.files; try d.put("command.sh", f.at("exec /bin/sh -c '{s}'\n", .{script})); @@ -300,7 +302,10 @@ fn drive(gpa: std.mem.Allocator, exe: [:0]const u8, script: []const u8, key: ?u8 try f.write(data, "\x15"); const back_by = eh.nowMs() + 10_000; while (!std.mem.eql(u8, try f.screen(), before)) { - if (eh.nowMs() > back_by) return error.ScreenNotRestored; + if (eh.nowMs() > back_by) { + std.debug.print("before:\n{s}\nafter ^U:\n{s}\n", .{ before, try f.screen() }); + return error.ScreenNotRestored; + } sleepMs(10); } } |
