From 93cefab1a3a40a5693217c9ce43380a1e1cfad4e Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 13 Apr 2012 16:53:51 -0700 Subject: [PATCH] Set errno in fake-failing child-process kill test --- test/simple/test-child-process-kill-throw.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;