diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-07-05 05:35:50 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-07-06 13:58:50 +0200 |
commit | f651e4035026feb4cf2fc70b0a4f0a6be9d92862 (patch) | |
tree | 53db3eea3e3d1d617da53ef40234472f2f71f2c0 /test/known_issues | |
parent | c6ce500edf364692efa9d46bc1bd9e959611f7da (diff) | |
download | android-node-v8-f651e4035026feb4cf2fc70b0a4f0a6be9d92862.tar.gz android-node-v8-f651e4035026feb4cf2fc70b0a4f0a6be9d92862.tar.bz2 android-node-v8-f651e4035026feb4cf2fc70b0a4f0a6be9d92862.zip |
test: check and fail inspector-cluster-port-clash
Currently this test fail when configured --without-inspector or
--without-ssl as it is expected to fail but the skipIfInspectorDisabled
check will exit as if the test was sucessful.
This commit checks if inspector support is available and fails the test
allowing the test to be skipped.
PR-URL: https://github.com/nodejs/node/pull/14074
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'test/known_issues')
-rw-r--r-- | test/known_issues/test-inspector-cluster-port-clash.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/known_issues/test-inspector-cluster-port-clash.js b/test/known_issues/test-inspector-cluster-port-clash.js index 41b00aacc1..9fa2b48356 100644 --- a/test/known_issues/test-inspector-cluster-port-clash.js +++ b/test/known_issues/test-inspector-cluster-port-clash.js @@ -1,6 +1,7 @@ // Flags: --inspect=0 'use strict'; const common = require('../common'); +const assert = require('assert'); // With the current behavior of Node.js (at least as late as 8.1.0), this // test fails with the following error: @@ -10,9 +11,15 @@ const common = require('../common'); // // Refs: https://github.com/nodejs/node/issues/13343 -common.skipIfInspectorDisabled(); +// This following check should be replaced by common.skipIfInspectorDisabled() +// if moved out of the known_issues directory. +if (process.config.variables.v8_enable_inspector === 0) { + // When the V8 inspector is disabled, using either --without-inspector or + // --without-ssl, this test will not fail which it is expected to do. + // The following fail will allow this test to be skipped by failing it. + assert.fail('skipping as V8 inspector is disabled'); +} -const assert = require('assert'); const cluster = require('cluster'); const net = require('net'); |