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 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822 2026-10-14 03:28:48 +00:00
parent 8a28df4488
commit d4df0a6f93
1 changed files with 6 additions and 9 deletions

View File

@ -74,15 +74,12 @@ it
const { stdout } = await parent;
const { pid } = JSON.parse(stdout) as { pid: number };
orphanPid = pid;
if (alternateMode) {
// 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),
);
}
await symlink(`/proc/${String(pid)}/${name}`, join(processEntry, name));
const { stdout: coordinates } = await execFileAsync("ps", [
"-p",
String(pid),