diff options
author | Ingela Anderton Andin <[email protected]> | 2011-01-20 17:00:32 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2011-01-20 17:00:32 +0100 |
commit | c6238ffaa4ef8bbe0aff8fde402a3254e746d3cc (patch) | |
tree | 01e0db63432942a98355b4f34a9e034cc747df75 /lib/ssl/test/ssl_session_cache_SUITE.erl | |
parent | 4c70b07402581cbcdc1204961344cb28bf383d20 (diff) | |
download | otp-c6238ffaa4ef8bbe0aff8fde402a3254e746d3cc.tar.gz otp-c6238ffaa4ef8bbe0aff8fde402a3254e746d3cc.tar.bz2 otp-c6238ffaa4ef8bbe0aff8fde402a3254e746d3cc.zip |
Skip ssl and public key tests if crypto fails to start
Diffstat (limited to 'lib/ssl/test/ssl_session_cache_SUITE.erl')
-rw-r--r-- | lib/ssl/test/ssl_session_cache_SUITE.erl | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/lib/ssl/test/ssl_session_cache_SUITE.erl b/lib/ssl/test/ssl_session_cache_SUITE.erl index 0f39759d97..a8828b26e3 100644 --- a/lib/ssl/test/ssl_session_cache_SUITE.erl +++ b/lib/ssl/test/ssl_session_cache_SUITE.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2010-2010. All Rights Reserved. +%% Copyright Ericsson AB 2010-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -47,19 +47,23 @@ %%-------------------------------------------------------------------- init_per_suite(Config0) -> Dog = ssl_test_lib:timetrap(?LONG_TIMEOUT *2), - crypto:start(), - application:start(public_key), - ssl:start(), - - %% make rsa certs using oppenssl - Result = - (catch make_certs:all(?config(data_dir, Config0), - ?config(priv_dir, Config0))), - test_server:format("Make certs ~p~n", [Result]), - - Config1 = ssl_test_lib:make_dsa_cert(Config0), - Config = ssl_test_lib:cert_options(Config1), - [{watchdog, Dog} | Config]. + case crypto:start() of + ok -> + application:start(public_key), + ssl:start(), + + %% make rsa certs using oppenssl + Result = + (catch make_certs:all(?config(data_dir, Config0), + ?config(priv_dir, Config0))), + test_server:format("Make certs ~p~n", [Result]), + + Config1 = ssl_test_lib:make_dsa_cert(Config0), + Config = ssl_test_lib:cert_options(Config1), + [{watchdog, Dog} | Config]; + _ -> + {skip, "Crypto did not start"} + end. %%-------------------------------------------------------------------- %% Function: end_per_suite(Config) -> _ |