aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-02-22 13:21:29 +0100
committerHans Nilsson <[email protected]>2018-02-22 13:21:29 +0100
commit83f8be4d44e6b8cab0ff9fd4bc423c477f72ec32 (patch)
tree0b4deb379e28f8e267871f24061d80e3957dcb0e
parent398dcda0815f12fb177bbb3bf68f6b424c2a62f2 (diff)
parent3339ecf6d991d38e5f2676da90f98ebcd9243c80 (diff)
downloadotp-83f8be4d44e6b8cab0ff9fd4bc423c477f72ec32.tar.gz
otp-83f8be4d44e6b8cab0ff9fd4bc423c477f72ec32.tar.bz2
otp-83f8be4d44e6b8cab0ff9fd4bc423c477f72ec32.zip
Merge branch 'hans/ssh/cuddle_tests' into maint
* hans/ssh/cuddle_tests: ssh: Fix hanging engine test case on an old outdated version
-rw-r--r--lib/ssh/test/ssh_engine_SUITE.erl26
1 files changed, 16 insertions, 10 deletions
diff --git a/lib/ssh/test/ssh_engine_SUITE.erl b/lib/ssh/test/ssh_engine_SUITE.erl
index daf93891e9..c131a70973 100644
--- a/lib/ssh/test/ssh_engine_SUITE.erl
+++ b/lib/ssh/test/ssh_engine_SUITE.erl
@@ -55,16 +55,22 @@ basic_tests() ->
init_per_suite(Config) ->
ssh:start(),
?CHECK_CRYPTO(
- case load_engine() of
- {ok,E} ->
- [{engine,E}|Config];
- {error, notsup} ->
- {skip, "Engine not supported on this OpenSSL version"};
- {error, bad_engine_id} ->
- {skip, "Dynamic Engine not supported"};
- Other ->
- ct:log("Engine load failed: ~p",[Other]),
- {fail, "Engine load failed"}
+ case crypto:info_lib() of
+ [{_,_, <<"OpenSSL 1.0.1s-freebsd 1 Mar 2016">>}] ->
+ {skip, "Strange Engine stuff"};
+
+ _ ->
+ case load_engine() of
+ {ok,E} ->
+ [{engine,E}|Config];
+ {error, notsup} ->
+ {skip, "Engine not supported on this OpenSSL version"};
+ {error, bad_engine_id} ->
+ {skip, "Dynamic Engine not supported"};
+ Other ->
+ ct:log("Engine load failed: ~p",[Other]),
+ {fail, "Engine load failed"}
+ end
end
).