Skip to content

Commit 4c64e7c

Browse files
committedMar 15, 2020
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 765c375 commit 4c64e7c

9 files changed

+1
-15
lines changed
 

‎test/common/index.js

-7
Original file line numberDiff line numberDiff line change
@@ -553,12 +553,6 @@ function skipIfInspectorDisabled() {
553553
}
554554
}
555555

556-
function skipIfReportDisabled() {
557-
if (!process.config.variables.node_report) {
558-
skip('Diagnostic reporting is disabled');
559-
}
560-
}
561-
562556
function skipIf32Bits() {
563557
if (bits < 64) {
564558
skip('The tested feature is not available in 32bit builds');
@@ -700,7 +694,6 @@ const common = {
700694
skipIf32Bits,
701695
skipIfEslintMissing,
702696
skipIfInspectorDisabled,
703-
skipIfReportDisabled,
704697
skipIfWorker,
705698

706699
get enoughTestCpu() {

‎test/report/test-report-config.js

-1
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

-1
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

-1
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

+1-1
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

-1
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

-1
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

-1
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

-1
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)
Please sign in to comment.