From 35dffa07c203169bd32c5be76db001c683aacc94 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Thu, 11 Jul 2024 18:48:14 +0200 Subject: [PATCH] Fix race in trace tests Could result in spurious unexpected send trace messages. --- erts/emulator/test/trace_sessions.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erts/emulator/test/trace_sessions.erl b/erts/emulator/test/trace_sessions.erl index c59a52eaba31..b31027ce7e53 100644 --- a/erts/emulator/test/trace_sessions.erl +++ b/erts/emulator/test/trace_sessions.erl @@ -264,9 +264,9 @@ init_group([pre_session|Tail], Config) -> %% Set a dummy send trace on all processes and ports %% but disable send trace to not get any messages. + 1 = trace:send(S, false, []), trace:process(S, all, true, [send]), trace:port(S, all, true, [send]), - 1 = trace:send(S, false, []), ets:insert(?MODULE, {pre_session, S, Tracer}), init_group(Tail, Config);