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.
 
 
 
 
 
 

11 lines
310 B

require("../common");
var spawn = require('child_process').spawn
, path = require('path')
, sub = path.join(fixturesDir, 'exit.js')
, child = spawn(process.argv[0], [sub, 23])
;
child.addListener('exit', function(code, signal) {
assert.strictEqual(code, 23);
assert.strictEqual(signal, null);
});