(p: string, needle: string)
| 26 | return pred(); |
| 27 | } |
| 28 | function logHas(p: string, needle: string): boolean { |
| 29 | try { return fs.readFileSync(p, 'utf-8').includes(needle); } catch { return false; } |
| 30 | } |
| 31 | |
| 32 | describe('gstack-detach', () => { |
| 33 | test('detaches (different pgid), returns immediately, completes, writes EXIT sentinel', () => { |