(options, callback)
| 29 | }); |
| 30 | |
| 31 | function createChild(options, callback) { |
| 32 | const [cmd, opts] = common.escapePOSIXShell`"${process.execPath}" "${__filename}" child`; |
| 33 | options = { ...options, env: { ...opts?.env, ...options.env } }; |
| 34 | |
| 35 | return cp.exec(cmd, options, common.mustCall(callback)); |
| 36 | } |
| 37 | |
| 38 | test('normal execution of a child process is handled', (_, done) => { |
| 39 | createChild({}, common.mustCall((err, stdout, stderr) => { |
no test coverage detected
searching dependent graphs…