diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-21 06:21:57 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-21 07:45:21 -0300 |
| commit | bbae7225e939daf4b6360d3de7af06c0fd95ce8d (patch) | |
| tree | dfd4fa1f7db63363a823d44b37aa168584c2ad14 /test/e2e_harness.zig | |
| parent | 744f1029ee2a02a43cb0fc70e32f70b60b100b75 (diff) | |
| download | pardes-bbae7225e939daf4b6360d3de7af06c0fd95ce8d.tar.gz pardes-bbae7225e939daf4b6360d3de7af06c0fd95ce8d.zip | |
pair: the process suite as pairs from 13 of 145 failing to 7 that stay (the goldens of one cause, open): the harness dials a pair's session, the launched client's child (test/process.zig `of`, `childOf`: it dialled the launched pid's socket); a Restore in a pair no daemon keeps is refused in words, as its Upgrade is (P42: runtime/session.zig `restore`: it let the client go and the session ended with its last link), and the three cases that Restore a pair run it with a daemon of their own root's (tty.zig `privateDaemon`, e2e_harness `PARDES_HARNESS_DAEMON`, process.zig `Detached.tty_daemon`, ended by `--kill-all` at its deinit); a pair's launch with no terminal says what the own path says and forks no session (main.zig `pair`, `noTerminal`: it said "pardes: NoDevice" after forking one); a terminal client ended by TERM or HUP dies of the signal once its goodbye is said and its terminal put back, as the own path's stub does (tui.zig `dieOfQuitSignal`: it exited 0 since pair-3), and the kill test takes a pair's hang-up as the close P36 ruled; PARDES_PAIR=1 process-test 8 of 145 (7 goldens of one family: resizes=2, a terminal panned in a view shorter than the one that sized it, a restored terminal's history; winch once), without the variable 0 of 145
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/e2e_harness.zig')
| -rw-r--r-- | test/e2e_harness.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/e2e_harness.zig b/test/e2e_harness.zig index 9481166e..40209af3 100644 --- a/test/e2e_harness.zig +++ b/test/e2e_harness.zig @@ -108,7 +108,9 @@ pub const Harness = struct { if (unsetenv(name) != 0) _exit(126); // The app is the process this kills and the terminal it hangs // up (deinit): no daemon to fork it off and keep it (daemon.zig). - if (setenv("PARDES_DAEMON", "off", 1) != 0) _exit(126); + // PARDES_HARNESS_DAEMON (tty.zig `privateDaemon`): a daemon of + // the case's own runtime directory, for a pair that is Restored. + if (setenv("PARDES_DAEMON", if (std.mem.span(std.c.getenv("PARDES_HARNESS_DAEMON") orelse "").len > 0) "on" else "off", 1) != 0) _exit(126); _ = execvp(exe, argv.ptr); _exit(127); } |
