diff options
Diffstat (limited to 'test/tty.zig')
| -rw-r--r-- | test/tty.zig | 6 |
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; |
