diff options
author | Micael Karlberg <[email protected]> | 2019-07-18 16:54:39 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-07-18 16:54:39 +0200 |
commit | 9f577b0e6255240a32ec0debb28cb7638e4cd31a (patch) | |
tree | 955107b3735d07eec9da114091b02fd428096c9e | |
parent | 76b8f794ce7192bde3a8e112cd6534320a7d6a2b (diff) | |
download | otp-9f577b0e6255240a32ec0debb28cb7638e4cd31a.tar.gz otp-9f577b0e6255240a32ec0debb28cb7638e4cd31a.tar.bz2 otp-9f577b0e6255240a32ec0debb28cb7638e4cd31a.zip |
[esock|test] Add two placeholder test cases: error and linger
Added two place holder test cases for the socket options error
and linger.
OTP-15904
-rw-r--r-- | erts/emulator/test/socket_SUITE.erl | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/erts/emulator/test/socket_SUITE.erl b/erts/emulator/test/socket_SUITE.erl index 91ce723afa..ed674eb335 100644 --- a/erts/emulator/test/socket_SUITE.erl +++ b/erts/emulator/test/socket_SUITE.erl @@ -128,7 +128,9 @@ api_opt_sock_debug/1, api_opt_sock_domain/1, api_opt_sock_dontroute/1, + api_opt_sock_error/1, api_opt_sock_keepalive/1, + api_opt_sock_linger/1, api_opt_ip_add_drop_membership/1, %% *** API Operation Timeout *** @@ -795,7 +797,9 @@ api_options_socket_cases() -> api_opt_sock_debug, api_opt_sock_domain, api_opt_sock_dontroute, - api_opt_sock_keepalive + api_opt_sock_error, + api_opt_sock_keepalive, + api_opt_sock_linger ]. api_options_ip_cases() -> @@ -9859,6 +9863,22 @@ api_opt_sock_dontroute() -> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Tests the socket option error. PLACEHOLDER! + +api_opt_sock_error(suite) -> + []; +api_opt_sock_error(doc) -> + []; +api_opt_sock_error(_Config) when is_list(_Config) -> + ?TT(?SECS(10)), + tc_try(api_opt_sock_error, + fun() -> not_yet_implemented() end, + fun() -> ok end). + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %% Tests the socket option keepalive. %% This is bit tricky to test, partly because we have no control over %% the underlying TCP timeouts. So, for now, we just test that we can @@ -9987,6 +10007,22 @@ api_opt_sock_keepalive() -> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Tests the socket option linger. PLACEHOLDER! + +api_opt_sock_linger(suite) -> + []; +api_opt_sock_linger(doc) -> + []; +api_opt_sock_linger(_Config) when is_list(_Config) -> + ?TT(?SECS(10)), + tc_try(api_opt_sock_linger, + fun() -> not_yet_implemented() end, + fun() -> ok end). + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %% Tests that the add_mambership and drop_membership ip options work. %% We create one server and two clients. The server only send messages, %% the clients only receives messages. |