From d4df0a6f93c573b8f54d17bae036edb06f689580 Mon Sep 17 00:00:00 2001 From: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com> Date: Wed, 14 Oct 2026 03:28:48 +0000 Subject: [PATCH] test(process): expose the demo helper fixture through the scanned proc root 599a8ee11 replaced the host-wide `ps` scan with a scan of the supplied proc root, but the reparented demo-helper case only mirrored its process into the synthetic root in alternate-launcher mode. The renamed `Xvfb` helper was therefore invisible and the clean-runtime check resolved. Mirror the fixture process in both modes. Co-Authored-By: Claude Opus 5.5 --- .../cleanLinuxHopperRuntime.test.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tests/process-global/cleanLinuxHopperRuntime.test.ts b/tests/process-global/cleanLinuxHopperRuntime.test.ts index 55fdf0ec9..00f02d6ec 100644 --- a/tests/process-global/cleanLinuxHopperRuntime.test.ts +++ b/tests/process-global/cleanLinuxHopperRuntime.test.ts @@ -74,15 +74,12 @@ it const { stdout } = await parent; const { pid } = JSON.parse(stdout) as { pid: number }; orphanPid = pid; - if (alternateMode) { - const processEntry = join(procRoot, String(pid)); - await mkdir(processEntry); - for (const name of ["cmdline", "comm", "exe"]) - await symlink( - `/proc/${String(pid)}/${name}`, - join(processEntry, name), - ); - } + // The runtime check reads only the supplied proc root, so expose the + // fixture there in both modes. + const processEntry = join(procRoot, String(pid)); + await mkdir(processEntry); + for (const name of ["cmdline", "comm", "exe"]) + await symlink(`/proc/${String(pid)}/${name}`, join(processEntry, name)); const { stdout: coordinates } = await execFileAsync("ps", [ "-p", String(pid),