aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-11-08 20:23:16 +0100
committerSverker Eriksson <[email protected]>2017-11-09 20:16:44 +0100
commitc133f397f30662d567216e38ef29b73b19f6bd3c (patch)
treeec255c1b58d33e54425201a1931584ac960e4e27
parent3e8c1ff94c0a73df71daadd4eb782c21c49f22d9 (diff)
downloadotp-c133f397f30662d567216e38ef29b73b19f6bd3c.tar.gz
otp-c133f397f30662d567216e38ef29b73b19f6bd3c.tar.bz2
otp-c133f397f30662d567216e38ef29b73b19f6bd3c.zip
erts: Fix distribution_SUITE:bad_dist_ext_size
for "+hmqd off_heap"
-rw-r--r--erts/emulator/test/distribution_SUITE.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/erts/emulator/test/distribution_SUITE.erl b/erts/emulator/test/distribution_SUITE.erl
index 4a0b299e03..917717f2f5 100644
--- a/erts/emulator/test/distribution_SUITE.erl
+++ b/erts/emulator/test/distribution_SUITE.erl
@@ -1683,13 +1683,16 @@ bad_dist_ext_size(Config) when is_list(Config) ->
start_node_monitors([Offender,Victim]),
Parent = self(),
- P = spawn_link(Victim,
+ P = spawn_opt(Victim,
fun () ->
Parent ! {self(), started},
receive check_msgs -> ok end, %% DID CRASH HERE
bad_dist_ext_check_msgs([one]),
Parent ! {self(), messages_checked}
- end),
+ end,
+ [link,
+ %% on_heap to force total_heap_size to inspect msg queue
+ {message_queue_data, on_heap}]),
receive {P, started} -> ok end,
P ! one,
@@ -1712,6 +1715,7 @@ bad_dist_ext_size(Config) when is_list(Config) ->
verify_still_up(Offender, Victim),
+ %% Let process_info(P, total_heap_size) find bad msg and disconnect
rpc:call(Victim, erlang, process_info, [P, total_heap_size]),
verify_down(Offender, connection_closed, Victim, killed),