Browse Source

Set errno in fake-failing child-process kill test

v0.9.1-release
isaacs 13 years ago
parent
commit
93cefab1a3
  1. 5
      test/simple/test-child-process-kill-throw.js

5
test/simple/test-child-process-kill-throw.js

@ -31,7 +31,10 @@ if (process.argv[2] === 'child') {
var error = {}; var error = {};
child.on('exit', function() { child.on('exit', function() {
child._internal = { child._internal = {
kill: function() { return -1; } kill: function() {
global.errno = 42;
return -1;
}
}; };
child.once('error', function(err) { child.once('error', function(err) {
error = err; error = err;

Loading…
Cancel
Save