aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/test/blowfish_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-01-24 14:01:06 +0100
committerLukas Larsson <[email protected]>2011-02-17 17:42:39 +0100
commit3d3251d2f371499e7af7b77335b4392f4ffaa465 (patch)
tree8cf2ce27df8b95e92246c3c36ee96dd84a9ae513 /lib/crypto/test/blowfish_SUITE.erl
parentede974119a7642cf3b85dc370090e80862191dd7 (diff)
downloadotp-3d3251d2f371499e7af7b77335b4392f4ffaa465.tar.gz
otp-3d3251d2f371499e7af7b77335b4392f4ffaa465.tar.bz2
otp-3d3251d2f371499e7af7b77335b4392f4ffaa465.zip
Update init_per_suite to skip all tests if crypto does not exist
Diffstat (limited to 'lib/crypto/test/blowfish_SUITE.erl')
-rw-r--r--lib/crypto/test/blowfish_SUITE.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/crypto/test/blowfish_SUITE.erl b/lib/crypto/test/blowfish_SUITE.erl
index 4ebcb2c7a0..36fbc59f00 100644
--- a/lib/crypto/test/blowfish_SUITE.erl
+++ b/lib/crypto/test/blowfish_SUITE.erl
@@ -45,8 +45,12 @@
%% variable, but should NOT alter/remove any existing entries.
%%--------------------------------------------------------------------
init_per_suite(Config) ->
- crypto:start(),
- Config.
+ case catch crypto:start() of
+ ok ->
+ Config;
+ _Else ->
+ {skip,"Could not start crypto!"}
+ end.
%%--------------------------------------------------------------------
%% Function: end_per_suite(Config) -> _