From aa1efad2675b61317cfcc7d7a283e724d92c220b Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 8 Mar 2017 13:39:57 +0100 Subject: [PATCH] test: add hasCrypto check to tls-legacy-deprecated Currently test-tls-legacy-deprecated will fail if node was built using --without-ssl. This commit adds a check to verify is crypto support exists and if not skip this test. --- test/parallel/test-tls-legacy-deprecated.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/parallel/test-tls-legacy-deprecated.js b/test/parallel/test-tls-legacy-deprecated.js index df8290c8622f21..b50c63e7763dfd 100644 --- a/test/parallel/test-tls-legacy-deprecated.js +++ b/test/parallel/test-tls-legacy-deprecated.js @@ -1,6 +1,10 @@ // Flags: --no-warnings 'use strict'; const common = require('../common'); +if (!common.hasCrypto) { + common.skip('missing crypto'); + return; +} const assert = require('assert'); const tls = require('tls');