From 94f7912c4a12a2a1ab325f62daebfe1b31fe101f Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Fri, 12 Apr 2019 11:48:22 +0200 Subject: 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. --- erts/emulator/test/dump_SUITE.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'erts/emulator') 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]), -- cgit v1.2.3