• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2// This tests that pausing and resuming stdin does not hang and timeout
3// when done in a child process.  See test/parallel/test-stdin-pause-resume.js
4const common = require('../common');
5const assert = require('assert');
6const child_process = require('child_process');
7const path = require('path');
8const cp = child_process.spawn(
9  process.execPath,
10  [path.resolve(__dirname, 'test-stdin-pause-resume.js')]
11);
12
13cp.on('exit', common.mustCall((code) => {
14  assert.strictEqual(code, 0);
15}));
16