Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

aix: skip command line check for test-fatal-error #41

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ exports.findReports = (pid) => {
return files.filter((file) => filePattern.test(file));
};

exports.isAIX = () => {
return process.platform === 'aix';
};

exports.isPPC = () => {
return process.arch.startsWith('ppc');
};
Expand Down
10 changes: 7 additions & 3 deletions test/test-fatal-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ if (process.argv[2] === 'child') {
const reports = common.findReports(child.pid);
tap.equal(reports.length, 1, 'Found reports ' + reports);
const report = reports[0];
common.validate(tap, report, {pid: child.pid,
commandline: child.spawnargs.join(' ')
});
const options = {pid: child.pid};
// Node.js currently overwrites the command line on AIX
// https://github.com/nodejs/node/issues/10607
if (!common.isAIX()) {
options.commandline = child.spawnargs.join(' ');
}
common.validate(tap, report, options);
});
}