(execArgv)
| 11 | |
| 12 | if (cluster.isPrimary) { |
| 13 | function test(execArgv) { |
| 14 | |
| 15 | cluster.setupPrimary({ |
| 16 | execArgv: execArgv, |
| 17 | stdio: ['pipe', 'pipe', 'pipe', 'ipc', 'pipe'], |
| 18 | }); |
| 19 | |
| 20 | const worker = cluster.fork(); |
| 21 | |
| 22 | // Debugger listening on port [port]. |
| 23 | worker.process.stderr.once('data', common.mustCall(function() { |
| 24 | worker.process.kill('SIGTERM'); |
| 25 | })); |
| 26 | |
| 27 | worker.process.on('exit', common.mustCall(function(code, signal) { |
| 28 | assert.strictEqual(signal, 'SIGTERM'); |
| 29 | })); |
| 30 | } |
| 31 | |
| 32 | test(['--inspect-brk']); |
| 33 | test([`--inspect-brk=${debuggerPort}`]); |
no test coverage detected
searching dependent graphs…