test(windows): skip POSIX-only assertions

This commit is contained in:
imccyu
2026-07-17 15:44:19 +08:00
parent b5fa2cb2b8
commit 228f6e3867
4 changed files with 6 additions and 5 deletions

View File

@@ -263,7 +263,7 @@ describe('dsh-subagent-acp', () => {
}
})
it('escalates to SIGTERM for a child that ignores EOF but is not SIGTERM-trapping', async () => {
it.skipIf(process.platform === 'win32')('escalates to SIGTERM for a child that ignores EOF but is not SIGTERM-trapping', async () => {
// A child that keeps its loop alive past stdin EOF (so the graceful window
// times out) but exits cooperatively on SIGTERM must die on the SIGTERM tier
// — dispose returns there, never reaching the SIGKILL tier. The child touches