From 4354669aa560c5504b046413f771d02c4216dd45 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 28 Sep 2026 18:13:42 -0300 Subject: Shell prompt files are one per content under $XDG_RUNTIME_DIR, so a killed pardes leaves none behind; tests remove their /tmp dirs Every pardes host wrote its own pardes-osc133-bash-* and -fish-* files to /tmp and removed them only at a clean teardown, so each killed session, test and crash left two: 72K of them had piled up. They are now written once per content, named by its hash, in the user's private runtime directory, renamed into place whole and shared by every pardes; without that directory the old private /tmp files remain. fish's -C source is quoted. The 9p_io tests remove their runtime dirs with what the listener left in them, and the snapshot runner removes its retry captures when every retry passed. Co-Authored-By: Claude Opus 5.5 --- test/snapshot.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/snapshot.zig b/test/snapshot.zig index 53553657..2fa8e89c 100644 --- a/test/snapshot.zig +++ b/test/snapshot.zig @@ -264,6 +264,9 @@ pub fn main(init: std.process.Init) !void { }); std.process.exit(1); } + // Every retry passed: the captures of the failed attempts explain + // nothing any more, and /tmp is not where they should pile up. + if (retry_dir) |d| std.Io.Dir.cwd().deleteTree(init.io, d) catch {}; std.debug.print("all {d} snapshot scripts ok\n", .{scripts.len}); } -- cgit v1.3