Permalink
Browse files

Set errno in fake-failing child-process kill test

  • Loading branch information...
1 parent b7b7b29 commit 93cefab1a3a40a5693217c9ce43380a1e1cfad4e @isaacs isaacs committed Apr 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 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;

0 comments on commit 93cefab

Please sign in to comment.