aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_to_openssh_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-01-24 13:33:13 +0100
committerNiclas Eklund <[email protected]>2011-05-19 14:38:14 +0200
commit2c0bd506cb99362635ebc0aafae36a95dc0a08b3 (patch)
treea354114b9ef64e9f71c1c6eac150d181793f07ca /lib/ssh/test/ssh_to_openssh_SUITE.erl
parent694eba4f53b5a1f07b5d37cbe4112fdd1e403a27 (diff)
downloadotp-2c0bd506cb99362635ebc0aafae36a95dc0a08b3.tar.gz
otp-2c0bd506cb99362635ebc0aafae36a95dc0a08b3.tar.bz2
otp-2c0bd506cb99362635ebc0aafae36a95dc0a08b3.zip
Update init_per_suite so that tests are skipped if crypto/ssh cannot be started.
Diffstat (limited to 'lib/ssh/test/ssh_to_openssh_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_to_openssh_SUITE.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl
index 12a350903a..69a57aad1b 100644
--- a/lib/ssh/test/ssh_to_openssh_SUITE.erl
+++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl
@@ -40,8 +40,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) -> _