diff options
author | Ingela Anderton Andin <[email protected]> | 2016-07-08 15:01:56 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2016-07-08 15:31:02 +0200 |
commit | 7b5c2f573d7f5954828f5ef22418b8c42da09a70 (patch) | |
tree | fac64efbb836ed0f552783254f3aecbd75a923b2 /lib | |
parent | a3cc3652c81a7edf49479bab74f4cb09377623f5 (diff) | |
download | otp-7b5c2f573d7f5954828f5ef22418b8c42da09a70.tar.gz otp-7b5c2f573d7f5954828f5ef22418b8c42da09a70.tar.bz2 otp-7b5c2f573d7f5954828f5ef22418b8c42da09a70.zip |
ssl: Test and test suites shall be independent of each other
Make sure ssl application has a fresh start, so that test do
not fail due to that other tests did not clean up properly.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssl/test/ssl_crl_SUITE.erl | 2 | ||||
-rw-r--r-- | lib/ssl/test/ssl_packet_SUITE.erl | 2 | ||||
-rw-r--r-- | lib/ssl/test/ssl_to_openssl_SUITE.erl | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/lib/ssl/test/ssl_crl_SUITE.erl b/lib/ssl/test/ssl_crl_SUITE.erl index 00636e5660..e37e127440 100644 --- a/lib/ssl/test/ssl_crl_SUITE.erl +++ b/lib/ssl/test/ssl_crl_SUITE.erl @@ -72,7 +72,7 @@ init_per_suite(Config) -> false -> {skip, io_lib:format("Bad openssl version: ~p",[OpenSSL_version])}; _ -> - catch crypto:stop(), + end_per_suite(Config), try crypto:start() of ok -> {ok, Hostname0} = inet:gethostname(), diff --git a/lib/ssl/test/ssl_packet_SUITE.erl b/lib/ssl/test/ssl_packet_SUITE.erl index e49d432c21..2160fa922c 100644 --- a/lib/ssl/test/ssl_packet_SUITE.erl +++ b/lib/ssl/test/ssl_packet_SUITE.erl @@ -140,6 +140,7 @@ init_per_suite(Config) -> catch crypto:stop(), try crypto:start() of ok -> + ssl:stop(), ssl:start(), {ok, _} = make_certs:all(proplists:get_value(data_dir, Config), proplists:get_value(priv_dir, Config)), @@ -162,6 +163,7 @@ init_per_group(GroupName, Config) -> {skip, "Missing crypto support"} end; _ -> + ssl:stop(), ssl:start(), Config end. diff --git a/lib/ssl/test/ssl_to_openssl_SUITE.erl b/lib/ssl/test/ssl_to_openssl_SUITE.erl index b3109b5de9..b340b672f4 100644 --- a/lib/ssl/test/ssl_to_openssl_SUITE.erl +++ b/lib/ssl/test/ssl_to_openssl_SUITE.erl @@ -116,6 +116,7 @@ init_per_suite(Config0) -> catch crypto:stop(), try crypto:start() of ok -> + ssl:stop(), ssl:start(), {ok, _} = make_certs:all(proplists:get_value(data_dir, Config0), proplists:get_value(priv_dir, Config0)), |