diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2011-01-24 14:43:56 +0100 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2011-01-24 14:43:56 +0100 |
commit | ac303885b1301762f772fcb7337fdfdc97c111d6 (patch) | |
tree | eafc223301521b8d69249188e05cd35099906286 /lib/public_key/test | |
parent | c9aae9e6874950c671c08940d4e72abc616c550e (diff) | |
download | otp-ac303885b1301762f772fcb7337fdfdc97c111d6.tar.gz otp-ac303885b1301762f772fcb7337fdfdc97c111d6.tar.bz2 otp-ac303885b1301762f772fcb7337fdfdc97c111d6.zip |
Changed crypto start test so that it works as intended
Diffstat (limited to 'lib/public_key/test')
-rw-r--r-- | lib/public_key/test/pkits_SUITE.erl | 5 | ||||
-rw-r--r-- | lib/public_key/test/public_key_SUITE.erl | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/public_key/test/pkits_SUITE.erl b/lib/public_key/test/pkits_SUITE.erl index e3cc694110..a20f4e72c6 100644 --- a/lib/public_key/test/pkits_SUITE.erl +++ b/lib/public_key/test/pkits_SUITE.erl @@ -129,7 +129,6 @@ private_certificate_extensions(Config) when is_list(Config) -> run(private_certificate_extensions()). run() -> - catch crypto:start(), Tests = [signature_verification(), validity_periods(), @@ -587,7 +586,7 @@ fin_per_testcase(_Func, Config) -> Config. init_per_suite(Config) -> - case crypto:start() of + case application:start(crypto) of ok -> Config; _ -> @@ -595,7 +594,7 @@ init_per_suite(Config) -> end. end_per_suite(_Config) -> - crypto:stop(). + application:stop(crypto). error(Format, Args, File0, Line) -> File = filename:basename(File0), diff --git a/lib/public_key/test/public_key_SUITE.erl b/lib/public_key/test/public_key_SUITE.erl index 3bd81a04ea..1bc1c8ec75 100644 --- a/lib/public_key/test/public_key_SUITE.erl +++ b/lib/public_key/test/public_key_SUITE.erl @@ -41,7 +41,7 @@ %% variable, but should NOT alter/remove any existing entries. %%-------------------------------------------------------------------- init_per_suite(Config) -> - case crypto:start() of + case application:start(crypto) of ok -> Config; _ -> @@ -54,7 +54,7 @@ init_per_suite(Config) -> %% Description: Cleanup after the whole suite %%-------------------------------------------------------------------- end_per_suite(_Config) -> - crypto:stop(). + application:stop(crypto). %%-------------------------------------------------------------------- %% Function: init_per_testcase(TestCase, Config) -> Config |