Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: fix test-linux-perf
- Set maxBuffer to Infinity because the output can exceed 1MB.
- Fix error checking for perfScript
  • Loading branch information
targos committed Jun 4, 2019
commit 289009fd655da6d898de7aed76ed870e161a646f
5 changes: 3 additions & 2 deletions test/v8-updates/test-linux-perf.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const perfScriptArgs = [
const options = {
cwd: tmpdir.path,
encoding: 'utf-8',
maxBuffer: Infinity
};

if (!common.isLinux)
Expand All @@ -57,8 +58,8 @@ if (perf.status !== 0) {

const perfScript = spawnSync('perf', perfScriptArgs, options);

if (perf.error)
common.skip(`perf script aborted: ${perf.error.errno}`);
if (perfScript.error)
common.skip(`perf script aborted: ${perfScript.error.errno}`);

if (perfScript.status !== 0) {
common.skip(`Failed to execute perf script: ${perfScript.stderr}`);
Expand Down