Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Set errno in fake-failing child-process kill test
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Apr 13, 2012
1 parent b7b7b29 commit 93cefab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/simple/test-child-process-kill-throw.js
Expand Up @@ -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;
Expand Down

0 comments on commit 93cefab

Please sign in to comment.