(r: { code: number | null; signal: NodeJS.Signals | 'TIMEOUT' | null })
| 87 | // signal=null with a non-zero exit code. Either is a kill; the synthetic |
| 88 | // 'TIMEOUT' (the watchdog never fired) is the failure we're guarding against. |
| 89 | function expectKilled(r: { code: number | null; signal: NodeJS.Signals | 'TIMEOUT' | null }): void { |
| 90 | expect(r.signal === 'SIGKILL' || (r.signal === null && r.code !== 0 && r.code !== null)).toBe(true); |
| 91 | } |
| 92 | |
| 93 | it('SIGKILLs a process whose main thread wedges in a sync loop', async () => { |
| 94 | const r = await runChild( |
no outgoing calls
no test coverage detected