diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 19:52:36 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 20:50:57 -0300 |
| commit | 3b082687c7da1c5d8cc52c71fdf4ddd38d860cd8 (patch) | |
| tree | 2bb1390e99b25598bf361860fede0d3e0a422248 /test/process/flags.zig | |
| parent | f7442cb1f23ce10ccedaa37b1851d751f689943d (diff) | |
| download | pardes-3b082687c7da1c5d8cc52c71fdf4ddd38d860cd8.tar.gz pardes-3b082687c7da1c5d8cc52c71fdf4ddd38d860cd8.zip | |
test: Detached on Child, one spawner for the process runner where three had grown (Detached's own fork and environment, its window pty, Child's): a session, the window's too, is Child.spawn with the root's environment, the window's test variables, its pty and its stderr to a file (Child's new err_log, which nobody's pipe can fill), 78 lines fewer; held connections time out a read after 60 s (SO_RCVTIMEO), so a lost answer fails its case, not the run; terminals' pty/run case tty-only for now, as on the window a fresh terminal's first pty/run sometimes never answers (4 runs of 6, docs/next-tests.md); tty 36 of 36, gui 30 and 6 skipped
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/process/flags.zig')
| -rw-r--r-- | test/process/flags.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/process/flags.zig b/test/process/flags.zig index 41aacc03..aa5b7497 100644 --- a/test/process/flags.zig +++ b/test/process/flags.zig @@ -773,12 +773,12 @@ fn signalCleansUp(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try std.testing.expect(d.exists("pardes-9p-sig.sock")); var sig = first; if (sig == .HUP) { - _ = libc.kill(d.pid, sig); + _ = libc.kill(d.child.pid, sig); process.nap(300); try check(d.exists("pardes-9p-sig.sock") and (try d.files.read("/index")).len > 0, "a hangup ended a kept session", .{}); sig = .TERM; } - _ = libc.kill(d.pid, sig); + _ = libc.kill(d.child.pid, sig); const deadline = process.nowMs() + 5_000; while (d.exists("pardes-9p-sig.sock") and process.nowMs() < deadline) process.nap(10); try check(!d.exists("pardes-9p-sig.sock"), "{t}: the socket left", .{first}); |
