diff --git a/test/common.js b/test/common.js index bc11f42..00ae4b6 100644 --- a/test/common.js +++ b/test/common.js @@ -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'); }; diff --git a/test/test-fatal-error.js b/test/test-fatal-error.js index 628d4d6..446ff07 100644 --- a/test/test-fatal-error.js +++ b/test/test-fatal-error.js @@ -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); }); }