mirror of https://github.com/lukechilds/node.git
Browse Source
The only test with modifications is `test-stdin-child-proc` that was passing when it should not because the exit code of the child process was not being checked. PR-URL: https://github.com/nodejs/node/pull/6087 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>v4.x
Santiago Gimeno
9 years ago
committed by
Myles Borins
18 changed files with 13 additions and 12 deletions
@ -0,0 +1,13 @@ |
|||
'use strict'; |
|||
// This tests that pausing and resuming stdin does not hang and timeout
|
|||
// when done in a child process. See test/parallel/test-stdin-pause-resume.js
|
|||
const common = require('../common'); |
|||
const assert = require('assert'); |
|||
const child_process = require('child_process'); |
|||
const path = require('path'); |
|||
const cp = child_process.spawn(process.execPath, |
|||
[path.resolve(__dirname, 'test-stdin-pause-resume.js')]); |
|||
|
|||
cp.on('exit', common.mustCall((code) => { |
|||
assert.equal(code, 0); |
|||
})); |
@ -1,8 +0,0 @@ |
|||
'use strict'; |
|||
// This tests that pausing and resuming stdin does not hang and timeout
|
|||
// when done in a child process. See test/simple/test-stdin-pause-resume.js
|
|||
require('../common'); |
|||
var child_process = require('child_process'); |
|||
var path = require('path'); |
|||
child_process.spawn(process.execPath, |
|||
[path.resolve(__dirname, 'test-stdin-pause-resume.js')]); |
Loading…
Reference in new issue