From bf4756fdfb1855a3648c603c533168676d7123b5 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 5 Sep 2013 14:55:22 +0800 Subject: [PATCH] Pass PATH environment in the child_process.fork spec. The uv_spawn under Windows requires the PATH environment variable to be there, otherwise it would throw a 203 system error, it should be a bug of node. --- spec/node/child_process.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/node/child_process.coffee b/spec/node/child_process.coffee index 6d0c1dbe..40bbd973 100644 --- a/spec/node/child_process.coffee +++ b/spec/node/child_process.coffee @@ -23,7 +23,7 @@ describe 'child_process', -> it 'should work in forked process when options.env is specifed', (done) -> child = child_process.fork path.join(fixtures, 'module', 'fork_ping.js'), [], - env: {test: 'somevar'} + path: process.env['PATH'] child.on 'message', (msg) -> assert.equal msg, 'message' done() -- 2.43.0