Skip to content

Commit 38ef658

Browse files
cjihrigtargos
authored andcommitted
test: remove common.skipIfReportDisabled()
The report feature won't ever be disabled moving forward, so checking for its existence in the tests is no longer needed. PR-URL: nodejs#32242 Fixes: nodejs#26293 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent bda6d4c commit 38ef658

9 files changed

+1
-15
lines changed

test/common/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -566,12 +566,6 @@ function skipIfInspectorDisabled() {
566566
}
567567
}
568568

569-
function skipIfReportDisabled() {
570-
if (!process.config.variables.node_report) {
571-
skip('Diagnostic reporting is disabled');
572-
}
573-
}
574-
575569
function skipIf32Bits() {
576570
if (bits < 64) {
577571
skip('The tested feature is not available in 32bit builds');
@@ -714,7 +708,6 @@ const common = {
714708
skipIf32Bits,
715709
skipIfEslintMissing,
716710
skipIfInspectorDisabled,
717-
skipIfReportDisabled,
718711
skipIfWorker,
719712

720713
get enoughTestCpu() {

test/report/test-report-config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Flags: --experimental-report --report-on-fatalerror --report-on-signal --report-uncaught-exception
22
'use strict';
33
const common = require('../common');
4-
common.skipIfReportDisabled();
54
const assert = require('assert');
65

76
common.expectWarning('ExperimentalWarning',

test/report/test-report-fatal-error.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
const common = require('../common');
4-
common.skipIfReportDisabled();
54
const assert = require('assert');
65
// Testcase to produce report on fatal error (javascript heap OOM)
76
if (process.argv[2] === 'child') {

test/report/test-report-getreport.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Flags: --experimental-report
22
'use strict';
33
const common = require('../common');
4-
common.skipIfReportDisabled();
54
const assert = require('assert');
65
const helper = require('../common/report');
76

test/report/test-report-signal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'use strict';
33
// Test producing a report via signal.
44
const common = require('../common');
5-
common.skipIfReportDisabled();
5+
66
if (common.isWindows)
77
return common.skip('Unsupported on Windows.');
88

test/report/test-report-uncaught-exception.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
'use strict';
33
// Test producing a report on uncaught exception.
44
const common = require('../common');
5-
common.skipIfReportDisabled();
65
const assert = require('assert');
76
const helper = require('../common/report');
87
const tmpdir = require('../common/tmpdir');

test/report/test-report-uv-handles.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const common = require('../common');
55
if (common.isIBMi)
66
common.skip('IBMi does not support fs.watch()');
77

8-
common.skipIfReportDisabled();
98
if (process.argv[2] === 'child') {
109
// Exit on loss of parent process
1110
const exit = () => process.exit(2);

test/report/test-report-worker.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Flags: --experimental-report
22
'use strict';
33
const common = require('../common');
4-
common.skipIfReportDisabled();
54
const assert = require('assert');
65
const { Worker } = require('worker_threads');
76
const { once } = require('events');

test/report/test-report-writereport.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
// Test producing a report via API call, using the no-hooks/no-signal interface.
55
const common = require('../common');
6-
common.skipIfReportDisabled();
76
const assert = require('assert');
87
const { spawnSync } = require('child_process');
98
const fs = require('fs');

0 commit comments

Comments
 (0)