| 330 | // path would have to string-match on. |
| 331 | |
| 332 | function makeFakeEngine(tmpDir: string, script: string): { name: string; config: { bin: string; args: (p: string) => string[] } } { |
| 333 | const binPath = path.join(tmpDir, 'fake-engine'); |
| 334 | fs.writeFileSync(binPath, script); |
| 335 | fs.chmodSync(binPath, 0o755); |
| 336 | return { name: 'fake', config: { bin: binPath, args: (p) => [p] } }; |
| 337 | } |
| 338 | |
| 339 | test('invokeEngineAsync: child stdin is closed with EOF (does not inherit parent)', async () => { |
| 340 | if (process.platform === 'win32') return; |