test(core): limit process group survival check to POSIX

Node assigns non-detached Windows children to a kill-on-parent-exit job, so the held-stdio mcp fixture cannot assert POSIX process-group survival there. Keep detached descendant, capture deadline, and success-policy coverage enabled on Windows.
This commit is contained in:
Kit Langton 2026-08-31 15:35:32 -04:00
parent acaca2cc01
commit 583103f2dd

View file

@ -275,7 +275,9 @@ describe("cross-spawn spawner", () => {
}).pipe(Effect.timeout("3 seconds")),
)
fx.live(
// Node puts non-detached Windows children in a kill-on-parent-exit job; this guards POSIX group cleanup.
const groupTest = process.platform === "win32" ? fx.live.skip : fx.live
groupTest(
"preserves successful descendants when an exit-only scope closes",
Effect.gen(function* () {
const tmp = yield* Effect.acquireRelease(