Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-child-process-set-blocking.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d6a044619b6479902f717b4d8129a53686da607b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';
const common = require('../common');
const assert = require('assert');
const ch = require('child_process');

const SIZE = 100000;

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

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