diff --git a/test/node-report/test-api-getreport.js b/test/node-report/test-api-getreport.js index 178469412d11fd..49e84d68a67ba9 100644 --- a/test/node-report/test-api-getreport.js +++ b/test/node-report/test-api-getreport.js @@ -21,8 +21,5 @@ if (process.argv[2] === 'child') { ' experimental feature. This feature could change at any time'), std_msg); const reportFiles = helper.findReports(child.pid, tmpdir.path); assert.deepStrictEqual(reportFiles, [], report_msg); - helper.validateContent(child.stdout, { pid: child.pid, - commandline: process.execPath + - ' ' + args.join(' ') - }); + helper.validateContent(child.stdout); } diff --git a/test/node-report/test-api-nohooks.js b/test/node-report/test-api-nohooks.js index 8b497e0663aa86..67d843c2701c17 100644 --- a/test/node-report/test-api-nohooks.js +++ b/test/node-report/test-api-nohooks.js @@ -23,8 +23,6 @@ if (process.argv[2] === 'child') { const reports = helper.findReports(child.pid, tmpdir.path); assert.strictEqual(reports.length, 1, report_msg); const report = reports[0]; - helper.validate(report, { pid: child.pid, - commandline: child.spawnargs.join(' ') - }); + helper.validate(report); })); } diff --git a/test/node-report/test-api-pass-error.js b/test/node-report/test-api-pass-error.js index caac6c7e8676d5..13e92570a72ead 100644 --- a/test/node-report/test-api-pass-error.js +++ b/test/node-report/test-api-pass-error.js @@ -25,9 +25,6 @@ if (process.argv[2] === 'child') { const reports = helper.findReports(child.pid, tmpdir.path); assert.strictEqual(reports.length, 1, report_msg); const report = reports[0]; - helper.validate(report, { pid: child.pid, - commandline: child.spawnargs.join(' '), - expectedException: 'Testing error handling', - }); + helper.validate(report); })); } diff --git a/test/node-report/test-api-uvhandles.js b/test/node-report/test-api-uvhandles.js index 52f58b6e135521..570fa42aa2f265 100644 --- a/test/node-report/test-api-uvhandles.js +++ b/test/node-report/test-api-uvhandles.js @@ -126,8 +126,6 @@ if (process.argv[2] === 'child') { assert.deepStrictEqual(udp, 1, udp_msg); // Common report tests. - helper.validateContent(stdout, { pid: child.pid, - commandline: child.spawnargs.join(' ') - }); + helper.validateContent(stdout); })); } diff --git a/test/node-report/test-api.js b/test/node-report/test-api.js index 9ffa66bb40c7b1..232fa1581f35ed 100644 --- a/test/node-report/test-api.js +++ b/test/node-report/test-api.js @@ -22,8 +22,6 @@ if (process.argv[2] === 'child') { const reports = helper.findReports(child.pid, tmpdir.path); assert.strictEqual(reports.length, 1, report_msg); const report = reports[0]; - helper.validate(report, { pid: child.pid, - commandline: child.spawnargs.join(' ') - }); + helper.validate(report); })); } diff --git a/test/node-report/test-exception.js b/test/node-report/test-exception.js index 9e423ec29cd8ec..e2c801afb9216e 100644 --- a/test/node-report/test-exception.js +++ b/test/node-report/test-exception.js @@ -37,8 +37,6 @@ if (process.argv[2] === 'child') { const reports = helper.findReports(child.pid, tmpdir.path); assert.strictEqual(reports.length, 1, report_msg); const report = reports[0]; - helper.validate(report, { pid: child.pid, - commandline: child.spawnargs.join(' ') - }); + helper.validate(report); })); } diff --git a/test/node-report/test-fatal-error.js b/test/node-report/test-fatal-error.js index 3d830aa72f0f8d..b6cf792725c9be 100644 --- a/test/node-report/test-fatal-error.js +++ b/test/node-report/test-fatal-error.js @@ -33,12 +33,6 @@ if (process.argv[2] === 'child') { const reports = helper.findReports(child.pid, tmpdir.path); assert.strictEqual(reports.length, 1); const report = reports[0]; - const options = { pid: child.pid }; - // Node.js currently overwrites the command line on AIX - // https://github.com/nodejs/node/issues/10607 - if (!(common.isAIX || common.isSunOS)) { - options.commandline = child.spawnargs.join(' '); - } - helper.validate(report, options); + helper.validate(report); })); } diff --git a/test/node-report/test-signal.js b/test/node-report/test-signal.js index 7368bb51c349c9..129933b5461cb9 100644 --- a/test/node-report/test-signal.js +++ b/test/node-report/test-signal.js @@ -73,8 +73,6 @@ if (process.argv[2] === 'child') { const reports = helper.findReports(child.pid, tmpdir.path); assert.deepStrictEqual(reports.length, 1, report_msg); const report = reports[0]; - helper.validate(report, { pid: child.pid, - commandline: child.spawnargs.join(' ') - }); + helper.validate(report); })); }