aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-01-15 16:48:59 +0100
committerLukas Larsson <[email protected]>2019-01-15 16:48:59 +0100
commitf06748963003692e003beb31f20ee820cf24364b (patch)
tree4194bd34de1808d1aa42c7b927aa280f15b1025d /erts/emulator
parent93f5c765236c9bd18559461604fb51687908bf78 (diff)
parent298f1c09da0778c895d95f79f170ea447b3774c0 (diff)
downloadotp-f06748963003692e003beb31f20ee820cf24364b.tar.gz
otp-f06748963003692e003beb31f20ee820cf24364b.tar.bz2
otp-f06748963003692e003beb31f20ee820cf24364b.zip
Merge branch 'maint'
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/test/process_SUITE.erl14
1 files changed, 14 insertions, 0 deletions
diff --git a/erts/emulator/test/process_SUITE.erl b/erts/emulator/test/process_SUITE.erl
index f4b1d885fe..edf08ce0bd 100644
--- a/erts/emulator/test/process_SUITE.erl
+++ b/erts/emulator/test/process_SUITE.erl
@@ -2104,6 +2104,13 @@ spawn_opt_max_heap_size(_Config) ->
error_logger:add_report_handler(?MODULE, self()),
+ %% flush any prior messages in error_logger
+ Pid = spawn(fun() -> ok = nok end),
+ receive
+ {error, _, {emulator, _, [Pid|_]}} ->
+ flush()
+ end,
+
%% Test that numerical limit works
max_heap_size_test(1024, 1024, true, true),
@@ -2208,6 +2215,13 @@ receive_unexpected() ->
ok
end.
+flush() ->
+ receive
+ _M -> flush()
+ after 0 ->
+ ok
+ end.
+
%% error_logger report handler proxy
init(Pid) ->
{ok, Pid}.