diff options
author | Ingela Anderton Andin <[email protected]> | 2018-03-16 15:50:41 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2018-03-16 15:50:41 +0100 |
commit | 62a6217ff9dff0418ae436c68b65a8b64461790a (patch) | |
tree | e09a364da922dd0a63bcb7b8059eded2834a6494 /lib/ssl/test/ssl_to_openssl_SUITE.erl | |
parent | bdbb5f0376678c0aae289b3f9264a2bd4d9b96ee (diff) | |
download | otp-62a6217ff9dff0418ae436c68b65a8b64461790a.tar.gz otp-62a6217ff9dff0418ae436c68b65a8b64461790a.tar.bz2 otp-62a6217ff9dff0418ae436c68b65a8b64461790a.zip |
ssl: Handle EXIT messages from test code correctly
Diffstat (limited to 'lib/ssl/test/ssl_to_openssl_SUITE.erl')
-rw-r--r-- | lib/ssl/test/ssl_to_openssl_SUITE.erl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/ssl/test/ssl_to_openssl_SUITE.erl b/lib/ssl/test/ssl_to_openssl_SUITE.erl index e8cbf857ef..9c60a6315e 100644 --- a/lib/ssl/test/ssl_to_openssl_SUITE.erl +++ b/lib/ssl/test/ssl_to_openssl_SUITE.erl @@ -1139,7 +1139,7 @@ ssl2_erlang_server_openssl_client(Config) when is_list(Config) -> OpenSslPort = ssl_test_lib:portable_open_port(Exe, Args), ct:log("Ports ~p~n", [[erlang:port_info(P) || P <- erlang:ports()]]), - consume_port_exit(OpenSslPort), + ssl_test_lib:consume_port_exit(OpenSslPort), ssl_test_lib:check_result(Server, {error, {tls_alert, "bad record mac"}}), process_flag(trap_exit, false). @@ -1955,12 +1955,6 @@ openssl_client_args(true, Hostname, Port, ServerName) -> ["s_client", "-no_ssl2", "-connect", Hostname ++ ":" ++ integer_to_list(Port), "-servername", ServerName]. -consume_port_exit(OpenSSLPort) -> - receive - {'EXIT', OpenSSLPort, _} -> - ok - end. - hostname_format(Hostname) -> case lists:member($., Hostname) of true -> |