Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d25dc79

Browse filesBrowse files
danbevMylesBorins
authored andcommitted
test: skipIfInspectorDisabled cluster-inspect-brk
When configured --without-ssl the inspect-brk option will not be available and the process will exit with a exit value of 9 "Invalid Argument/Bad option". This commit adds a skipIfInspectorDisabled check since --without-ssl implies that no inspector support is build as well. PR-URL: #12757 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 7b9710d commit d25dc79
Copy full SHA for d25dc79

File tree

Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎test/common/index.js‎

Copy file name to clipboardExpand all lines: test/common/index.js
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,3 +575,10 @@ exports.crashOnUnhandledRejection = function() {
575575
process.on('unhandledRejection',
576576
(err) => process.nextTick(() => { throw err; }));
577577
};
578+
579+
exports.skipIfInspectorDisabled = function skipIfInspectorDisabled() {
580+
if (!exports.hasCrypto) {
581+
exports.skip('missing ssl support so inspector is disabled');
582+
process.exit(0);
583+
}
584+
};
Collapse file

‎test/sequential/test-cluster-inspect-brk.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-cluster-inspect-brk.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22
const common = require('../common');
3+
common.skipIfInspectorDisabled();
34

45
// A test to ensure that cluster properly interoperates with the
56
// --inspect-brk option.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.