diff options
author | Lukas Larsson <[email protected]> | 2015-10-19 17:29:48 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2015-12-15 10:05:47 +0100 |
commit | 99415cedd98151ca74715b6cadf90f6dd8493025 (patch) | |
tree | 54aa49d930e4218300e2846f8164e2d945f3a637 /erts/emulator/test/port_SUITE.erl | |
parent | 638476d255cf6f9e5cd880eb9318d5b08664e5f8 (diff) | |
download | otp-99415cedd98151ca74715b6cadf90f6dd8493025.tar.gz otp-99415cedd98151ca74715b6cadf90f6dd8493025.tar.bz2 otp-99415cedd98151ca74715b6cadf90f6dd8493025.zip |
erts: iter_port sleep longer on freebsd
Diffstat (limited to 'erts/emulator/test/port_SUITE.erl')
-rw-r--r-- | erts/emulator/test/port_SUITE.erl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/erts/emulator/test/port_SUITE.erl b/erts/emulator/test/port_SUITE.erl index 6cc86a26a3..19065fe811 100644 --- a/erts/emulator/test/port_SUITE.erl +++ b/erts/emulator/test/port_SUITE.erl @@ -719,7 +719,16 @@ close_ports([]) -> ok. open_ports(Name, Settings) -> - test_server:sleep(5), + case os:type() of + {unix, freebsd} -> + %% FreeBsd has issues with sendmsg/recvmsg in fork + %% implementation and we therefor have to spawn + %% slower to make sure that we always hit the same + %% make roof. + test_server:sleep(10); + _ -> + test_server:sleep(5) + end, case catch open_port(Name, Settings) of P when is_port(P) -> [P| open_ports(Name, Settings)]; |