summaryrefslogtreecommitdiff
path: root/test/tty.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-21 11:09:42 -0300
committerGabriel Schneider <[email protected]>2026-11-21 12:42:33 -0300
commit9f4b8e83ed908c8b7a9bf979a5c9bf581e66c052 (patch)
tree188719afb0be2300c5e08042a6f2197b579ca49e /test/tty.zig
parentc4f7bb9477c7aa4c8864f14edb9e85b6c8c08437 (diff)
downloadpardes-9f4b8e83ed908c8b7a9bf979a5c9bf581e66c052.tar.gz
pardes-9f4b8e83ed908c8b7a9bf979a5c9bf581e66c052.zip
pair: the process suite as pairs from 8 of 145 failing to 0, no golden changed: a pair's first client takes the session's view instead of one opened beside it (core/replica.zig `Peers.viewFor` `own`, daemon.zig `Joining.own`, `Replica.initBoot` alike so the digests agree), as does a joiner of any session with no frontend, no client and no view kept for one (after a Restore's `views.only`, or detached since): the boot's terminals were sized by the session's own view 0, which nobody looks at, so a client's layout never resized them (`Pardes.sizes`): the `↑` pans and the pane a row off of shrinktag, windowops, layout-close, topbarexec, headersweep-restored; a size already taken is no resize (dev/tui/tui.zig `Shell.resized`: a client's start and its input thread's first size were two `.resize` events, `resizes=2`); a Restore tells its clients so and they join again saying nothing (`Peers.restoring`, `restore_words`, `Link.rejoins`: they were cut with no word and asked the daemon, which once in two answered nothing listed and the client ended, and when they rejoined they said "upgrading"), a client handed over while it restores joins the restored core at the next boundary (it was hung up on, and its redial's 100 ms showed the old screen), and the dump's messages are not put on the clock while they rejoin (runtime/session.zig `restore`: the "Dump" chip went); a pair's client enters its terminal before its own boot (tui.zig `runClient`: keys typed while it booted went into a cooked terminal, echoed as ^B and lost; winch as a pair pinned to one CPU 0 of 5, now 5 of 5; the own path takes them); the tty cases' private daemon and their pair's session are killed at the case's end (test/tty.zig `Tty.deinit`: 21 of them outlived this morning's runs); core-test 894/1054 (160 skipped), shell-test 1096/1099 (3 skipped) (+1 each, the Restore's test; firstOnPair now expects no reload at a pair's first join); PARDES_PAIR=1 process-test 1, 0, 0 of 145 (pagercolor once at load 12.9, on the known list; runs 2 and 3 with no case failing even once), own path 0 of 145, winch alone as a pair 20 of 20; daemon.py plain, --pair, --attach-upgrading pass on Debug and ReleaseSafe
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/tty.zig')
-rw-r--r--test/tty.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/tty.zig b/test/tty.zig
index 5cd92887..97b64b7c 100644
--- a/test/tty.zig
+++ b/test/tty.zig
@@ -146,6 +146,12 @@ pub const Tty = struct {
// Set back, not unset: an unsetenv compacts the environment block
// the runner's std.Io holds (host_io.testUnsetenv's reason).
if (runtime_dir) |was| {
+ // Its pair's session and their daemon, the case's own, ended: a
+ // session whose client went with no goodbye (let go at a
+ // Restore, killed) is kept by that daemon, and outlived the run.
+ if (std.fmt.allocPrintSentinel(t.arena, "'{s}' --kill-all > /dev/null 2>&1", .{t.exe}, 0)) |cmd| {
+ _ = system(cmd);
+ } else |_| {}
_ = setenv("PARDES_HARNESS_DAEMON", "", 1);
_ = setenv("XDG_RUNTIME_DIR", was, 1);
runtime_dir = null;