diff options
author | Björn Gustavsson <[email protected]> | 2011-12-05 12:31:38 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-12-05 12:31:38 +0100 |
commit | bdc69e0c35229fe11c98c14715b040b2f0eee5aa (patch) | |
tree | 33e9fe280bfaee82e3a5facd597a78ce6625d29b /lib/cosFileTransfer/test/fileTransfer_SUITE.erl | |
parent | f667e4a47b07b07ed035073b94d699ff5fe0ba9b (diff) | |
parent | 6e36ca17f9c36a420702c683f1e09c2b7daa58bc (diff) | |
download | otp-bdc69e0c35229fe11c98c14715b040b2f0eee5aa.tar.gz otp-bdc69e0c35229fe11c98c14715b040b2f0eee5aa.tar.bz2 otp-bdc69e0c35229fe11c98c14715b040b2f0eee5aa.zip |
Merge branch 'bjorn/test-cases'
* bjorn/test-cases:
lcnt_SUITE: Be kind to slow machines
crypto_SUITE: Reinstate what was "lost in translation"
fileTransferSUITE: Cope with missing/broken crypto application
sensitive_SUITE: Fix spuriously failing recv_trace/1
eprof_SUITE: Cope with fast computers and bad time measurements
cover_SUITE: Cope with missing/broken crypto application
otp_SUITE: Write log files about undefined functions and so on
Diffstat (limited to 'lib/cosFileTransfer/test/fileTransfer_SUITE.erl')
-rw-r--r-- | lib/cosFileTransfer/test/fileTransfer_SUITE.erl | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/cosFileTransfer/test/fileTransfer_SUITE.erl b/lib/cosFileTransfer/test/fileTransfer_SUITE.erl index e94c307ef8..79a234bd28 100644 --- a/lib/cosFileTransfer/test/fileTransfer_SUITE.erl +++ b/lib/cosFileTransfer/test/fileTransfer_SUITE.erl @@ -131,10 +131,10 @@ end_per_testcase(_Case, Config) -> ok. init_per_suite(Config) -> - case code:which(crypto) of - Res when is_atom(Res) -> + case crypto_works() of + false -> {skip,"Could not start crypto!"}; - _Else -> + true -> orber:jump_start(), cosProperty:install(), cosProperty:start(), @@ -165,6 +165,15 @@ init_per_suite(Config) -> end end. +crypto_works() -> + try crypto:start() of + {error,{already_started,crypto}} -> true; + ok -> true + catch + error:_ -> + false + end. + end_per_suite(Config) -> ssl:stop(), crypto:stop(), |