aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-04-12 11:48:22 +0200
committerLukas Larsson <[email protected]>2019-04-18 14:13:35 +0200
commit94f7912c4a12a2a1ab325f62daebfe1b31fe101f (patch)
tree39447378d41bd3dbe5bb9ef5d11496ac0863fbd7 /erts
parent8cba01c623eeb962298750d60bf22f6d6f5538dc (diff)
downloadotp-94f7912c4a12a2a1ab325f62daebfe1b31fe101f.tar.gz
otp-94f7912c4a12a2a1ab325f62daebfe1b31fe101f.tar.bz2
otp-94f7912c4a12a2a1ab325f62daebfe1b31fe101f.zip
erts: Make dump_SUITE:free_dump not dump via rpc
Doing the dump via rpc can introduce all kins of strange timing issiues. So instead we dump 5ms after the exit has been started.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/test/dump_SUITE.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/erts/emulator/test/dump_SUITE.erl b/erts/emulator/test/dump_SUITE.erl
index 3b860ebdf6..2440833992 100644
--- a/erts/emulator/test/dump_SUITE.erl
+++ b/erts/emulator/test/dump_SUITE.erl
@@ -146,7 +146,7 @@ free_dump(Config) when is_list(Config) ->
Self ! ready,
receive
ok ->
- unlink(Self),
+ spawn(fun() -> timer:sleep(5), erlang:halt("dump") end),
exit(lists:duplicate(1000,1000))
end
end),
@@ -156,8 +156,6 @@ free_dump(Config) when is_list(Config) ->
[erlang:monitor(process, Pid) || _ <- lists:seq(1,10000)],
receive ready -> unlink(Pid), Pid ! ok end,
- rpc:call(Node, erlang, halt, ["dump"]),
-
{ok, Bin} = get_dump_when_done(Dump),
{match, Matches} = re:run(Bin,"^State: Non Existing", [global, multiline]),