test(pty): the non-blocking judge case is POSIX-only (its fake judge is a shebang script, like the PTY harness it covers)

This commit is contained in:
garrytan committed 2026-10-02 22:09:13 +00:00
1 parent b24bb7a49c
commit b9c806da3d
1 file changed
+3 -1
+3 -1
View File
@@ -219,7 +219,9 @@ console.log(JSON.stringify({attempts,total:clock,fileWall:1800000}));
} finally { fs.rmSync(a.dir, { recursive: true, force: true }); }
}, 25_000);
test('the PTY state judge leaves the event loop to concurrent sessions while it waits', () => {
// The fake judge binary is a #! shell script, which Windows cannot exec; the PTY judge itself only
// runs inside the POSIX PTY eval harness, so this case is POSIX-only like the harness it covers.
test.skipIf(process.platform === 'win32')('the PTY state judge leaves the event loop to concurrent sessions while it waits', () => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'pty-judge-'));
const claude = path.join(dir, 'claude');
const worker = path.join(dir, 'worker.ts');