diff options
author | Micael Karlberg <[email protected]> | 2019-07-23 16:35:47 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-07-23 16:35:47 +0200 |
commit | d8260be31109f3b9989c4987cea23de83de4e159 (patch) | |
tree | 9d46eb5a5b1975b667d8dbd96b0e8a56b59285cf /erts/emulator | |
parent | 47f5bd6f2b65668588383021f80f51984dfee63d (diff) | |
download | otp-d8260be31109f3b9989c4987cea23de83de4e159.tar.gz otp-d8260be31109f3b9989c4987cea23de83de4e159.tar.bz2 otp-d8260be31109f3b9989c4987cea23de83de4e159.zip |
[esock|test] Changing 'dontroute' may not be allowed
If we are not allowe to change ('eopnotsupp') the socket
option 'dontroute' then we skip the test case.
OTP-15904
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/test/socket_SUITE.erl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/erts/emulator/test/socket_SUITE.erl b/erts/emulator/test/socket_SUITE.erl index 9bf7084e95..4e3db11bbe 100644 --- a/erts/emulator/test/socket_SUITE.erl +++ b/erts/emulator/test/socket_SUITE.erl @@ -9790,11 +9790,12 @@ api_opt_sock_domain() -> %% Tests the socket option dontroute. %% The man page has the following to say: %% "Don't send via a gateway, send only to directly connected hosts. -%% The same effect can be achieved by setting the MSG_DONTROUTE +%% The same effect can be achieved by setting the MSG_DONTROUTE %% flag on a socket send(2) operation." %% Since its "kind of" difficult to check if it actually takes an -%% effect (you would need a gateway for that), we only test if we -%% can set and get the value. Better then nothing. +%% effect (you would need a gateway for that and a machine "on the +%% other side"), we only test if we can set and get the value. +%% Better then nothing. api_opt_sock_dontroute(suite) -> []; @@ -9869,6 +9870,10 @@ api_opt_sock_dontroute() -> ok -> ?SEV_IPRINT("Expected Success"), {ok, State#{dontroute => New}}; + {error, eopnotsupp = Reason} -> + ?SEV_EPRINT("Expected Failure: ~p", + [Reason]), + {skip, Reason}; {error, Reason} = ERROR -> ?SEV_EPRINT("Unexpected Failure: ~p", [Reason]), |