Skip to content

Commit

Permalink
test: Pass cli flags in pummel/test-regress-GH-892
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 6, 2013
1 parent 46fcebb commit 892a20d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/pummel/test-regress-GH-892.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,15 @@ function makeRequest() {

var stderrBuffer = '';

var child = spawn(process.execPath,
[childScript, common.PORT, bytesExpected]);
// Pass along --trace-deprecation/--throw-deprecation in
// 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) {
assert.ok(/DONE/.test(stderrBuffer));
Expand Down

0 comments on commit 892a20d

Please sign in to comment.