summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-set-blocking.js
blob: fb0b11f433130a745dca7d6f0a95b3782f020ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';
const common = require('../common');
var assert = require('assert');
var ch = require('child_process');

var SIZE = 100000;

var cp = ch.spawn('python', ['-c', 'print ' + SIZE + ' * "C"'], {
  stdio: 'inherit'
});

cp.on('exit', common.mustCall(function(code) {
  assert.equal(0, code);
}));