Browse Source

test: don't use --max-stack-size=0

--max-stack-size was removed in 3a87b31, use --stack-size instead.
What's more, a zero length stack will likely crash the process.
v0.11.7-release
Ben Noordhuis 11 years ago
parent
commit
d6fb764cc2
  1. 2
      test/simple/test-child-process-fork-exec-argv.js
  2. 2
      test/simple/test-process-exec-argv.js

2
test/simple/test-child-process-fork-exec-argv.js

@ -31,7 +31,7 @@ if (process.argv[2] === 'fork') {
} else if (process.argv[2] === 'child') {
fork(__filename, ['fork']);
} else {
var execArgv = ['--harmony_proxies', '--max-stack-size=0'];
var execArgv = ['--harmony_proxies', '--stack-size=64'];
var args = [__filename, 'child', 'arg0'];
var child = spawn(process.execPath, execArgv.concat(args));

2
test/simple/test-process-exec-argv.js

@ -25,7 +25,7 @@ var spawn = require('child_process').spawn;
if (process.argv[2] === 'child') {
process.stdout.write(JSON.stringify(process.execArgv));
} else {
var execArgv = ['--harmony_proxies', '--max-stack-size=0'];
var execArgv = ['--harmony_proxies', '--stack-size=64'];
var args = [__filename, 'child', 'arg0'];
var child = spawn(process.execPath, execArgv.concat(args));
var out = '';

Loading…
Cancel
Save