From dddfd0f8b8bfdfd2811ae3130d3d20590a661f0a Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 25 Oct 2011 02:23:07 +0200 Subject: [PATCH] test: spawn process.argv[0], not 'node' 'node' may or may not be on the path and may or may not be the version we are running the test suite for. --- test/simple/test-regress-GH-1899.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simple/test-regress-GH-1899.js b/test/simple/test-regress-GH-1899.js index 2234bb703..350e6947a 100644 --- a/test/simple/test-regress-GH-1899.js +++ b/test/simple/test-regress-GH-1899.js @@ -24,7 +24,7 @@ var assert = require('assert') var spawn = require('child_process').spawn; var common = require('../common'); -var child = spawn('node', [path.join(common.fixturesDir, 'GH-1899-output.js')]); +var child = spawn(process.argv[0], [path.join(common.fixturesDir, 'GH-1899-output.js')]); var output = ''; child.stdout.on('data', function (data) {