Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: spawn process.argv[0], not 'node'
Browse files Browse the repository at this point in the history
'node' may or may not be on the path and may or may not be the version we are
running the test suite for.
  • Loading branch information
bnoordhuis committed Oct 25, 2011
1 parent 58cb0fa commit dddfd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/simple/test-regress-GH-1899.js
Expand Up @@ -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) {
Expand Down

0 comments on commit dddfd0f

Please sign in to comment.