| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0105c13 commit 2e8570b
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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})`); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,8 +55,12 @@ if (process.argv[2] === 'child') { | |||
| 55 | 55 | child.stderr.on('data', (d) => { errData = Buffer.concat([ errData, d ]); }); | |
| 56 | 56 | child.stdout.on('data', (d) => { outData = Buffer.concat([ outData, d ]); }); | |
| 57 | 57 | ||
| 58 | - child.on('close', common.mustCall((code) => { | ||
| 59 | - assert.strictEqual(code, 1); | ||
| 58 | + child.on('close', common.mustCall((code, signal) => { | ||
| 59 | + if (signal) { | ||
| 60 | + console.log(`Child closed with signal: ${signal}`); | ||
| 61 | + } else { | ||
| 62 | + assert.strictEqual(code, 1); | ||
| 63 | + } | ||
| 60 | 64 | assert.match(outData.toString(), heartbeatMsg, | |
| 61 | 65 | 'did not crash until we reached offending line of code ' + | |
| 62 | 66 | `(found ${outData})`); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments