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

Commit

Permalink
Disable log file generation with --prof flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dmelikyan committed Jun 10, 2015
1 parent bb1d4cc commit 9503117
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/simple/test-regress-GH-14576.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ if (process.platform !== 'win32') {

var testScript = "var i = 0; function r() { if(++i > 25) return; " +
"setTimeout(r, 1); }; r();"
var nodeCmd = process.execPath + ' --prof -e "' + testScript + '"';
var nodeCmd = process.execPath +
' --prof --nologfile_per_isolate' +
' -e "' + testScript + '"';
var runs = 0;

function runTestScript() {
child = cp.exec(nodeCmd, function(err, stdout, stderr) {
if(++runs > 50) return;
if (++runs > 50) return;

runTestScript();
});
Expand Down

0 comments on commit 9503117

Please sign in to comment.