diff options
author | isaacs <i@izs.me> | 2012-04-13 16:53:51 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-04-13 16:53:51 -0700 |
commit | 93cefab1a3a40a5693217c9ce43380a1e1cfad4e (patch) | |
tree | bd49675857fafdd26c6331aaedc16b4de9d1b044 | |
parent | b7b7b29f509c46e6d5854b1cd04c0ec757de6389 (diff) | |
download | android-node-v8-93cefab1a3a40a5693217c9ce43380a1e1cfad4e.tar.gz android-node-v8-93cefab1a3a40a5693217c9ce43380a1e1cfad4e.tar.bz2 android-node-v8-93cefab1a3a40a5693217c9ce43380a1e1cfad4e.zip |
Set errno in fake-failing child-process kill test
-rw-r--r-- | test/simple/test-child-process-kill-throw.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/simple/test-child-process-kill-throw.js b/test/simple/test-child-process-kill-throw.js index 79daa5d4c5..3f46799b02 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; |