diff options
author | Hans Nilsson <[email protected]> | 2016-06-09 12:09:52 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-06-09 12:09:52 +0200 |
commit | 060807cf9e91182b4d46432c436a8c4953be9d7d (patch) | |
tree | 26107721553ec67ec247c20da123233b6a4db1a1 /lib/ssh/test/ssh_test_lib.hrl | |
parent | 38cdb3b5131257a8cc76b8f64e32b8ecf722bdb4 (diff) | |
parent | 2f1ee6efa802f7f1089add9f87fd8b2804d5f124 (diff) | |
download | otp-060807cf9e91182b4d46432c436a8c4953be9d7d.tar.gz otp-060807cf9e91182b4d46432c436a8c4953be9d7d.tar.bz2 otp-060807cf9e91182b4d46432c436a8c4953be9d7d.zip |
Merge branch 'hans/ssh/update_tests/OTP-13573'
Diffstat (limited to 'lib/ssh/test/ssh_test_lib.hrl')
-rw-r--r-- | lib/ssh/test/ssh_test_lib.hrl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/ssh/test/ssh_test_lib.hrl b/lib/ssh/test/ssh_test_lib.hrl index 7cb7edeaa8..54c93b7e87 100644 --- a/lib/ssh/test/ssh_test_lib.hrl +++ b/lib/ssh/test/ssh_test_lib.hrl @@ -1,4 +1,14 @@ %%------------------------------------------------------------------------- +%% Check for usable crypt +%%------------------------------------------------------------------------- +-define(CHECK_CRYPTO(Available), + try crypto:start() + of _ -> Available + catch _:_ -> {skip, "Can't start crypto"} + end + ). + +%%------------------------------------------------------------------------- %% Help macro %%------------------------------------------------------------------------- -define(wait_match(Pattern, FunctionCall, Bind, Timeout, Ntries), |