diff options
author | Johan Bergström <bugs@bergstroem.nu> | 2015-03-04 12:11:21 +1100 |
---|---|---|
committer | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2015-03-05 10:31:41 +0900 |
commit | 671fbd5a9de03c5ede968ef6c6b365965a546a55 (patch) | |
tree | 771b3158d781911def96ffbd50bd9d4cad4b0077 /test/pummel/test-tls-session-timeout.js | |
parent | c7ad320472d69962b48e10e564682f24dd31d1d1 (diff) | |
download | node-new-671fbd5a9de03c5ede968ef6c6b365965a546a55.tar.gz |
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 <info@bnoordhuis.nl>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
Diffstat (limited to 'test/pummel/test-tls-session-timeout.js')
-rw-r--r-- | test/pummel/test-tls-session-timeout.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/pummel/test-tls-session-timeout.js b/test/pummel/test-tls-session-timeout.js index 13e6a957f1..74a1abc990 100644 --- a/test/pummel/test-tls-session-timeout.js +++ b/test/pummel/test-tls-session-timeout.js @@ -5,6 +5,11 @@ if (!common.opensslCli) { process.exit(0); } +if (!common.hasCrypto) { + console.log('1..0 # Skipped: missing crypto'); + process.exit(); +} + doTest(); // This test consists of three TLS requests -- |