aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-06-01 15:45:21 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-06-01 15:45:21 +0200
commitaf012bcbf2d6a5edd5b7c0e49bc76f7d2c3196e2 (patch)
treef79be74b41c5e09b96b029644382eac86b3a4907 /lib/runtime_tools
parent77b6b9a3c5d044a832ba36f8683bbe88279d8c88 (diff)
parent034394661dc1b2467825b58f6264874f6940c279 (diff)
downloadotp-af012bcbf2d6a5edd5b7c0e49bc76f7d2c3196e2.tar.gz
otp-af012bcbf2d6a5edd5b7c0e49bc76f7d2c3196e2.tar.bz2
otp-af012bcbf2d6a5edd5b7c0e49bc76f7d2c3196e2.zip
Merge branch 'egil/lttng-cuddle-tests'
* egil/lttng-cuddle-tests: erts: Cuddle with lttng_SUITE 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),