@@ -52,8 +52,12 @@ if (process.argv[2] === 'child') {
|
52 | 52 | child.stderr.on('data', (d) => { errData = Buffer.concat([ errData, d ]); }); |
53 | 53 | child.stdout.on('data', (d) => { outData = Buffer.concat([ outData, d ]); }); |
54 | 54 | |
55 | | -child.on('close', common.mustCall((code) => { |
56 | | -assert.strictEqual(code, 1); |
| 55 | +child.on('close', common.mustCall((code, signal) => { |
| 56 | +if (signal) { |
| 57 | +console.log(`Child closed with signal: ${signal}`); |
| 58 | +} else { |
| 59 | +assert.strictEqual(code, 1); |
| 60 | +} |
57 | 61 | assert.match(outData.toString(), heartbeatMsg, |
58 | 62 | 'did not crash until we reached offending line of code ' + |
59 | 63 | `(found ${outData})`); |
|