aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-05-27 14:53:25 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-05-27 14:53:25 +0200
commit3163a2dbc35270b1bd6ead1566c707ce3914a70c (patch)
treecc942ebf5ad722165e73a8ebaa6ba0bc3fd0575b /lib/runtime_tools
parentaf9e26bc0cdbbd1a5a81e760501c307c3176fea0 (diff)
downloadotp-3163a2dbc35270b1bd6ead1566c707ce3914a70c.tar.gz
otp-3163a2dbc35270b1bd6ead1566c707ce3914a70c.tar.bz2
otp-3163a2dbc35270b1bd6ead1566c707ce3914a70c.zip
runtime_tools: Cuddle with t_receive tests
Diffstat (limited to 'lib/runtime_tools')
-rw-r--r--lib/runtime_tools/test/dyntrace_lttng_SUITE.erl12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/runtime_tools/test/dyntrace_lttng_SUITE.erl b/lib/runtime_tools/test/dyntrace_lttng_SUITE.erl
index e6c147b003..07707c6a12 100644
--- a/lib/runtime_tools/test/dyntrace_lttng_SUITE.erl
+++ b/lib/runtime_tools/test/dyntrace_lttng_SUITE.erl
@@ -247,10 +247,16 @@ t_call_silent(Config) when is_list(Config) ->
t_receive(Config) when is_list(Config) ->
ok = lttng_start_event("com_ericsson_dyntrace:message_receive", Config),
_ = erlang:trace(new, true, [{tracer, dyntrace, []},'receive']),
+ timer:sleep(20),
+
+ Pid1 = spawn_link(fun() -> waiter() end),
+ Pid1 ! {self(), ok},
+ ok = receive {Pid1,ok} -> ok end,
+
+ Pid2 = spawn_link(fun() -> waiter() end),
+ Pid2 ! {self(), ok},
+ ok = receive {Pid2,ok} -> ok end,
- Pid = spawn_link(fun() -> waiter() end),
- Pid ! {self(), ok},
- ok = receive {Pid,ok} -> ok end,
timer:sleep(10),
_ = erlang:trace(all, false, ['receive']),
Res = lttng_stop_and_view(Config),