Skip to content

Commit

Permalink
Fix race in trace tests
Browse files Browse the repository at this point in the history
Could result in spurious unexpected send trace messages.
  • Loading branch information
sverker committed Jul 11, 2024
1 parent f9b07e1 commit 35dffa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erts/emulator/test/trace_sessions.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35dffa0

Please sign in to comment.