From 671fbd5a9de03c5ede968ef6c6b365965a546a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Wed, 4 Mar 2015 12:11:21 +1100 Subject: test: refactor all tests that depends on crypto we had a few ways versions of looking for support before executing a test. this commit unifies them as well as add the check for all tests that previously lacked them. found by running `./configure --without-ssl && make test`. also, produce tap skip output if the test is skipped. PR-URL: https://github.com/iojs/io.js/pull/1049 Reviewed-By: Ben Noordhuis Reviewed-By: Shigeki Ohtsu --- test/parallel/test-tls-econnreset.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/parallel/test-tls-econnreset.js') diff --git a/test/parallel/test-tls-econnreset.js b/test/parallel/test-tls-econnreset.js index 78548c415c..c339fc5be6 100644 --- a/test/parallel/test-tls-econnreset.js +++ b/test/parallel/test-tls-econnreset.js @@ -1,10 +1,10 @@ -if (!process.versions.openssl) { - console.error('Skipping because node compiled without OpenSSL.'); - process.exit(0); -} - var common = require('../common'); var assert = require('assert'); + +if (!common.hasCrypto) { + console.log('1..0 # Skipped: missing crypto'); + process.exit(); +} var tls = require('tls'); var cacert = '-----BEGIN CERTIFICATE-----\n' + -- cgit v1.2.1