diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 23:47:50 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 23:47:50 -0300 |
| commit | d236dff22567c2f563756695598678afb84fbef4 (patch) | |
| tree | 11c5ed3c0d696587e49bf8ec5a8b2a696d5be718 /test/process/tty_boot.zig | |
| parent | 9d4c94f03c5e34933e80e1069c16df74c2631965 (diff) | |
| parent | 165f1f61a20dd95a9018177d66e6f4f40a4cb320 (diff) | |
| download | pardes-d236dff22567c2f563756695598678afb84fbef4.tar.gz pardes-d236dff22567c2f563756695598678afb84fbef4.zip | |
integration: the documents as the tree is, with tests that do not depend on the load or the clock's second: pardes-docs (six changes of documents and the changelog) and pardes-test-robust (the corpus's click in one write, the two clock-second core tests, winch, headersweep and grep waiting on what they need, and the language server's false "still loading" message), merged without a conflict on pardes-merge22; tui core-test 848/991 (143 skipped), shell-test 1027/1030
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/process/tty_boot.zig')
| -rw-r--r-- | test/process/tty_boot.zig | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/process/tty_boot.zig b/test/process/tty_boot.zig index a5f42074..741f6260 100644 --- a/test/process/tty_boot.zig +++ b/test/process/tty_boot.zig @@ -300,6 +300,9 @@ fn restore(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // when it comes up. Both headers used to run the word under the PRESS, on // the press, so a sweep of `echo SWEPT-COL` ran a bare `echo`. A right sweep // looks for what it swept the same way, and the other button cancels. +// What a sweep ran is waited for in its pane's tag, `(echo SW''EPT-COL) exit +// 0`, which stays: the echo's line shows in the pane's one body row only +// until `exit 0` follows it, and a loaded machine draws both in one frame. fn headersweep(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "headersweep"); defer t.deinit(); @@ -321,7 +324,7 @@ fn headersweep(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.style("col-sweeping"); try t.drag("middle", "@echo+16", 2); try t.release("middle", "@echo+16", 2); - try t.wait(8000, "SWEPT-COL"); + try t.wait(8000, "EPT-COL) exit 0"); try t.stable(700, 15000); try t.snap("col-swept"); // the workspace tag, the same @@ -335,7 +338,7 @@ fn headersweep(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.press("middle", "@echo", 1); try t.drag("middle", "@echo+15", 1); try t.release("middle", "@echo+15", 1); - try t.wait(8000, "SWEPT-WS"); + try t.wait(8000, "EPT-WS) exit 0"); try t.stable(700, 15000); try t.snap("ws-swept"); // a right sweep over part of a word looks for the part: `hay.txt` opens, @@ -399,7 +402,7 @@ fn headersweep_restored(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.style("col-sweeping"); try t.drag("middle", "@echo+19", 2); try t.release("middle", "@echo+19", 2); - try t.wait(8000, "RESTORED-COL"); + try t.wait(8000, "-COL) exit 0"); try t.stable(700, 15000); try t.snap("col-swept"); try t.press("left", "118", 1); @@ -415,7 +418,7 @@ fn headersweep_restored(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.style("ws-sweeping"); try t.drag("middle", "@echo+18", 1); try t.release("middle", "@echo+18", 1); - try t.wait(8000, "RESTORED-WS"); + try t.wait(8000, "-WS) exit 0"); try t.stable(700, 15000); try t.snap("ws-swept"); try t.done(); @@ -869,6 +872,10 @@ fn winch(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(31, 100, &.{ "-n", "3" }); try t.stable(700, 20000); try t.key("c-b"); + // Its shell at its prompt after its `ls` (a row of the 50-column pane + // holding `$` alone): typed into earlier, a loaded machine's bash echoed + // the line before its readline was up, or ran it before the `ls`. + try t.wait(20000, "\n $" ++ @as([47]u8, @splat(' '))); try t.stable(600, 8000); try t.send("for i in $(seq 600); do kill -WINCH $PPID; done; echo SUR''VIVED"); try t.key("enter"); |
