Skip to content

Commit c8c5a52

Browse files
committed
test: make tests pass when built without inspector
PR-URL: #12622 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d1d9ecf commit c8c5a52

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

test/common.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ exports.expectsError = function expectsError({code, type, message}) {
646646
};
647647

648648
exports.skipIfInspectorDisabled = function skipIfInspectorDisabled() {
649-
if (!exports.hasCrypto) {
650-
exports.skip('missing ssl support so inspector is disabled');
649+
if (process.config.variables.v8_enable_inspector === 0) {
650+
exports.skip('V8 inspector is disabled');
651651
process.exit(0);
652652
}
653653
};

test/parallel/test-debug-prompt.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
'use strict';
22

3-
require('../common');
3+
const common = require('../common');
4+
common.skipIfInspectorDisabled();
45
const spawn = require('child_process').spawn;
56

6-
const proc = spawn(process.execPath, ['debug', 'foo']);
7+
const proc = spawn(process.execPath, ['inspect', 'foo']);
78
proc.stdout.setEncoding('utf8');
89

910
let output = '';

test/sequential/test-debugger-repeat-last.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22
const common = require('../common');
3+
common.skipIfInspectorDisabled();
34
const path = require('path');
45
const spawn = require('child_process').spawn;
56
const assert = require('assert');
@@ -9,7 +10,7 @@ const fixture = path.join(
910
);
1011

1112
const args = [
12-
'debug',
13+
'inspect',
1314
`--port=${common.PORT}`,
1415
fixture
1516
];

0 commit comments

Comments
 (0)