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 = {};
child.on('exit', function() {
child._internal = {
kill: function() { return -1; }
kill: function() {
global.errno = 42;
return -1;
}
};
child.once('error', function(err) {
error = err;

Loading…
Cancel
Save