aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/statistics_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-08-31 12:59:18 +0200
committerLukas Larsson <[email protected]>2017-10-02 10:35:53 +0200
commit4989ca90cac9ee7782c470ce14e4843225db5db4 (patch)
tree371b245b25f37ab8b4b63cd5000d17a98a412993 /erts/emulator/test/statistics_SUITE.erl
parent4ac6ce823f96310259e7c5d1e8b242e548150ace (diff)
downloadotp-4989ca90cac9ee7782c470ce14e4843225db5db4.tar.gz
otp-4989ca90cac9ee7782c470ce14e4843225db5db4.tar.bz2
otp-4989ca90cac9ee7782c470ce14e4843225db5db4.zip
erts: Fix msacc testcase with new poll-thread
Diffstat (limited to 'erts/emulator/test/statistics_SUITE.erl')
-rw-r--r--erts/emulator/test/statistics_SUITE.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/erts/emulator/test/statistics_SUITE.erl b/erts/emulator/test/statistics_SUITE.erl
index 7a396d273c..029a6de897 100644
--- a/erts/emulator/test/statistics_SUITE.erl
+++ b/erts/emulator/test/statistics_SUITE.erl
@@ -674,6 +674,16 @@ msacc_test(TmpFile) ->
ets:insert(Tid, {1, hello}),
ets:delete(Tid),
+ %% Check some IO
+ {ok, L} = gen_tcp:listen(0, [{active, true},{reuseaddr,true}]),
+ {ok, Port} = inet:port(L),
+ Pid = spawn(fun() ->
+ {ok, S} = gen_tcp:accept(L),
+ (fun F() -> receive M -> F() end end)()
+ end),
+ {ok, C} = gen_tcp:connect("localhost", Port, []),
+ [begin gen_tcp:send(C,"hello"),timer:sleep(1) end || _ <- lists:seq(1,100)],
+
%% Collect some garbage
[erlang:garbage_collect() || _ <- lists:seq(1,100)],