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.
18 lines
531 B
18 lines
531 B
11 years ago
|
var common = require('../common');
|
||
|
var assert = require('assert');
|
||
|
var cluster = require('cluster');
|
||
|
|
||
|
setTimeout(assert.fail.bind(assert, 'setup not emitted'), 1000).unref();
|
||
|
|
||
|
cluster.on('setup', function() {
|
||
|
var clusterArgs = cluster.settings.args;
|
||
|
var realArgs = process.argv;
|
||
|
assert.equal(clusterArgs[clusterArgs.length - 1],
|
||
|
realArgs[realArgs.length - 1]);
|
||
|
});
|
||
|
|
||
|
assert(process.argv[process.argv.length - 1] !== 'OMG,OMG');
|
||
|
process.argv.push('OMG,OMG');
|
||
|
process.argv.push('OMG,OMG');
|
||
|
cluster.setupMaster();
|