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

test-regress-GH-node-9326.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 15a2abbdc55af0d481b2f8f1207f396bb7bab089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var assert = require('assert');
var child_process = require('child_process');

// NOTE: Was crashing on FreeBSD
var cp = child_process.spawn(process.execPath, [
  '-e',
  'process.kill(process.pid, "SIGINT")'
]);

cp.on('exit', function(code) {
  assert.notEqual(code, 0);
});