aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eldap
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-11-18 10:22:39 +0100
committerFredrik Gustafsson <[email protected]>2013-11-18 10:22:39 +0100
commit58fb18b66eca3de6af4f33f5447fd8de63adf3a8 (patch)
tree860d040d13eeaba14f8596963d6262c3a574465c /lib/eldap
parent04f5e4e820f792b3f07dd232f582e6a7e0a3d3f7 (diff)
parentfb0006c937e284cefe5217d4c2a4b45ff7dfb758 (diff)
downloadotp-58fb18b66eca3de6af4f33f5447fd8de63adf3a8.tar.gz
otp-58fb18b66eca3de6af4f33f5447fd8de63adf3a8.tar.bz2
otp-58fb18b66eca3de6af4f33f5447fd8de63adf3a8.zip
Merge branch 'maint'
Diffstat (limited to 'lib/eldap')
-rw-r--r--lib/eldap/test/eldap_basic_SUITE.erl17
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/eldap/test/eldap_basic_SUITE.erl b/lib/eldap/test/eldap_basic_SUITE.erl
index 127d753b92..bf5fa83c3c 100644
--- a/lib/eldap/test/eldap_basic_SUITE.erl
+++ b/lib/eldap/test/eldap_basic_SUITE.erl
@@ -28,10 +28,19 @@
-define(TIMEOUT, 120000). % 2 min
init_per_suite(Config) ->
- ssl:start(),
- chk_config(ldap_server, {"localhost",9876},
- chk_config(ldaps_server, {"localhost",9877},
- Config)).
+ StartSsl = try ssl:start()
+ catch
+ Error:Reason ->
+ {skip, lists:flatten(io_lib:format("eldap init_per_suite failed to start ssl Error=~p Reason=~p", [Error, Reason]))}
+ end,
+ case StartSsl of
+ ok ->
+ chk_config(ldap_server, {"localhost",9876},
+ chk_config(ldaps_server, {"localhost",9877},
+ Config));
+ _ ->
+ StartSsl
+ end.
end_per_suite(_Config) ->
ok.