aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/port_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2015-10-19 17:29:48 +0200
committerLukas Larsson <[email protected]>2015-12-15 10:05:47 +0100
commit99415cedd98151ca74715b6cadf90f6dd8493025 (patch)
tree54aa49d930e4218300e2846f8164e2d945f3a637 /erts/emulator/test/port_SUITE.erl
parent638476d255cf6f9e5cd880eb9318d5b08664e5f8 (diff)
downloadotp-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.erl11
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)];