Browse Source

test: Pass cli flags in pummel/test-regress-GH-892

v0.9.12-release
isaacs 12 years ago
parent
commit
32ac8c0b69
  1. 11
      test/pummel/test-regress-GH-892.js

11
test/pummel/test-regress-GH-892.js

@ -50,8 +50,15 @@ function makeRequest() {
var stderrBuffer = ''; var stderrBuffer = '';
var child = spawn(process.execPath, // Pass along --trace-deprecation/--throw-deprecation in
[childScript, common.PORT, bytesExpected]); // process.execArgv to track down nextTick recursion errors
// more easily. Also, this is handy when using this test to
// view V8 opt/deopt behavior.
var args = process.execArgv.concat([ childScript,
common.PORT,
bytesExpected ]);
var child = spawn(process.execPath, args);
child.on('exit', function(code) { child.on('exit', function(code) {
assert.ok(/DONE/.test(stderrBuffer)); assert.ok(/DONE/.test(stderrBuffer));

Loading…
Cancel
Save