aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-05-13 15:52:03 +0200
committerMicael Karlberg <[email protected]>2011-05-13 15:52:03 +0200
commit8c9edd9c00142d0622beb74ef852c79871a631a6 (patch)
treea3ba815715da33b30107b368ac83e197d21d6617 /lib
parent266e6fda05c1682f975050cd4a1d72d49a03ea7d (diff)
downloadotp-8c9edd9c00142d0622beb74ef852c79871a631a6.tar.gz
otp-8c9edd9c00142d0622beb74ef852c79871a631a6.tar.bz2
otp-8c9edd9c00142d0622beb74ef852c79871a631a6.zip
Fixit init per tescase for testcase for initial_server_connect.
For this case to work, we need crypto!
Diffstat (limited to 'lib')
-rw-r--r--lib/inets/test/httpc_SUITE.erl17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/inets/test/httpc_SUITE.erl b/lib/inets/test/httpc_SUITE.erl
index 7607bc9eb6..1998bd3950 100644
--- a/lib/inets/test/httpc_SUITE.erl
+++ b/lib/inets/test/httpc_SUITE.erl
@@ -217,12 +217,17 @@ init_per_testcase(otp_8154_1 = Case, Config) ->
init_per_testcase(Case, 5, Config);
init_per_testcase(initial_server_connect, Config) ->
- inets:start(),
- application:start(crypto),
- application:start(public_key),
- application:start(ssl),
- application:start(inets),
- Config;
+ %% Try to check if crypto actually exist or not,
+ %% this test case does not work unless it does
+ case (catch crypto:start()) of
+ ok ->
+ application:start(public_key),
+ application:start(ssl),
+ inets:start(),
+ Config;
+ _ ->
+ {skip,"Could not start crypto"}
+ end;
init_per_testcase(Case, Config) ->
init_per_testcase(Case, 2, Config).