diff options
author | Micael Karlberg <[email protected]> | 2019-05-17 17:26:30 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-05-29 13:47:40 +0200 |
commit | b10770cbac5bd761270d6b1ec8ace99bd17ed707 (patch) | |
tree | bd08ad11b79bc699ad70c4f8f4a54494104b4c50 /erts/emulator | |
parent | 12e99364db99e336d5382510241f47e40e0db9af (diff) | |
download | otp-b10770cbac5bd761270d6b1ec8ace99bd17ed707.tar.gz otp-b10770cbac5bd761270d6b1ec8ace99bd17ed707.tar.bz2 otp-b10770cbac5bd761270d6b1ec8ace99bd17ed707.zip |
[esock|test] Skip Unix Domain stream test case on Open Indiana
On OpenIndiana Hipster on a Unix Domain stream socket it
may be possible to set a *large* recv buffer size, that will
actually not work. So, to avoid issues, simply skip the
traffic_ping_pong_large_send_and_recv_tcpL on that platform.
OTP-15822
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/test/socket_SUITE.erl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/erts/emulator/test/socket_SUITE.erl b/erts/emulator/test/socket_SUITE.erl index b420acd57c..9f0afcfca6 100644 --- a/erts/emulator/test/socket_SUITE.erl +++ b/erts/emulator/test/socket_SUITE.erl @@ -10879,7 +10879,10 @@ traffic_ping_pong_large_send_and_recv_tcpL(_Config) when is_list(_Config) -> Msg = l2b(?TPP_LARGE), Num = ?TPP_LARGE_NUM, tc_try(traffic_ping_pong_large_send_and_recv_tcpL, - fun() -> has_support_unix_domain_socket() end, + fun() -> + has_support_unix_domain_socket(), + traffic_ping_pong_large_host_cond() + end, fun() -> InitState = #{domain => local, proto => default, @@ -10888,6 +10891,15 @@ traffic_ping_pong_large_send_and_recv_tcpL(_Config) when is_list(_Config) -> ok = traffic_ping_pong_send_and_recv_tcp(InitState) end). +%% This test case is a bit extreme and fails on some hosts +%% (e.g. OpenIndiana Hipster), so exclude them. +traffic_ping_pong_large_host_cond() -> + traffic_ping_pong_large_host_cond(os:type(), os:version()). + +traffic_ping_pong_large_host_cond({unix, sunos}, _) -> + skip("TC does not work on platform"); +traffic_ping_pong_large_host_cond(_, _) -> + ok. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |