diff --git a/test/simple/test-child-process-kill-throw.js b/test/simple/test-child-process-kill-throw.js index 79daa5d4c50..3f46799b02c 100644 --- a/test/simple/test-child-process-kill-throw.js +++ b/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;