diff options
author | Ingela Anderton Andin <[email protected]> | 2017-02-09 14:48:49 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-02-13 09:17:12 +0100 |
commit | 4d04c2b2b7dc606591d27112533fcb76ce811626 (patch) | |
tree | acbb86354e5839b4bf9f60ca2f4a7bb46863a0ba | |
parent | db845bde0a37d4b28e5112270b4de502a54925c8 (diff) | |
download | otp-4d04c2b2b7dc606591d27112533fcb76ce811626.tar.gz otp-4d04c2b2b7dc606591d27112533fcb76ce811626.tar.bz2 otp-4d04c2b2b7dc606591d27112533fcb76ce811626.zip |
ssl: Test case robustness
-rw-r--r-- | lib/ssl/test/ssl_test_lib.erl | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl index 9632103696..49d2b5c1b8 100644 --- a/lib/ssl/test/ssl_test_lib.erl +++ b/lib/ssl/test/ssl_test_lib.erl @@ -278,8 +278,11 @@ check_result(Server, ServerMsg, Client, ClientMsg) -> check_result(Server, ServerMsg); {Port, {data,Debug}} when is_port(Port) -> - ct:log("~p:~p~nopenssl ~s~n",[?MODULE,?LINE, Debug]), + ct:log("~p:~p~n Openssl ~s~n",[?MODULE,?LINE, Debug]), check_result(Server, ServerMsg, Client, ClientMsg); + {Port,closed} when is_port(Port) -> + ct:log("~p:~p~n Openssl port ~n",[?MODULE,?LINE]), + check_result(Server, ServerMsg, Client, ClientMsg); Unexpected -> Reason = {{expected, {Client, ClientMsg}}, {expected, {Server, ServerMsg}}, {got, Unexpected}}, @@ -291,11 +294,11 @@ check_result(Pid, Msg) -> {Pid, Msg} -> ok; {Port, {data,Debug}} when is_port(Port) -> - ct:log("~p:~p~nopenssl ~s~n",[?MODULE,?LINE, Debug]), + ct:log("~p:~p~n Openssl ~s~n",[?MODULE,?LINE, Debug]), check_result(Pid,Msg); - %% {Port, {exit_status, Status}} when is_port(Port) -> - %% ct:log("~p:~p Exit status: ~p~n",[?MODULE,?LINE, Status]), - %% check_result(Pid, Msg); + {Port,closed} when is_port(Port)-> + ct:log("~p:~p Openssl port closed ~n",[?MODULE,?LINE]), + check_result(Pid, Msg); Unexpected -> Reason = {{expected, {Pid, Msg}}, {got, Unexpected}}, |