File 0518-erts-Add-extra-sync-in-dump_SUITE.patch of Package erlang

From 6a6e8b2aced359bb30a3bc9cd0c1a6b1855b4a74 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Wed, 19 Oct 2022 09:18:25 +0200
Subject: [PATCH 1/9] erts: Add extra sync in dump_SUITE

---
 erts/emulator/test/dump_SUITE.erl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/erts/emulator/test/dump_SUITE.erl b/erts/emulator/test/dump_SUITE.erl
index d58984b88c..926e32d216 100644
--- a/erts/emulator/test/dump_SUITE.erl
+++ b/erts/emulator/test/dump_SUITE.erl
@@ -129,12 +129,13 @@ exiting_dump(Config) when is_list(Config) ->
                                   [ets:insert(T,{I,I}) || I <- lists:seq(1,1000)]
                               end || _ <- lists:seq(1,1000)],
                              Self ! ready,
-                             receive ok -> ok end
+                             receive {terminate, Pid} -> Pid ! ok end
                      end),
 
     true = rpc:call(Node, os, putenv, ["ERL_CRASH_DUMP",Dump]),
 
-    receive ready -> unlink(Pid), Pid ! ok end,
+    receive ready -> unlink(Pid), Pid ! {terminate, self()} end,
+    receive ok -> ok end,
 
     rpc:call(Node, erlang, halt, ["dump"]),
 
-- 
2.35.3

openSUSE Build Service is sponsored by