mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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.
This commit is contained in:
1 parent
58cb0fa639
commit
dddfd0f8b8
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user