mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
514 B
14 lines
514 B
9 years ago
|
'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);
|
||
|
}));
|