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

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 5038f40 commit 32ac8c0
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 32ac8c0

Please sign in to comment.