aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-11-30 17:35:14 +0100
committerBjörn Gustavsson <[email protected]>2011-12-02 16:59:34 +0100
commitb6e73d9f9e01fba5573beb01e1cafff07fa33c3e (patch)
tree74fa1b48d316402261c96401d7b5222c67a849ac
parent9492e5f9730de2083044625552eee3c804be4fb6 (diff)
downloadotp-b6e73d9f9e01fba5573beb01e1cafff07fa33c3e.tar.gz
otp-b6e73d9f9e01fba5573beb01e1cafff07fa33c3e.tar.bz2
otp-b6e73d9f9e01fba5573beb01e1cafff07fa33c3e.zip
sensitive_SUITE: Fix spuriously failing recv_trace/1
Only three messages are guaranteed to be in message queue of the tracer process. The second {trace_delivered,_,_} message may or may not be there.
-rw-r--r--erts/emulator/test/sensitive_SUITE.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/erts/emulator/test/sensitive_SUITE.erl b/erts/emulator/test/sensitive_SUITE.erl
index 634df367ca..e073eab596 100644
--- a/erts/emulator/test/sensitive_SUITE.erl
+++ b/erts/emulator/test/sensitive_SUITE.erl
@@ -160,8 +160,7 @@ recv_trace(Config) when is_list(Config) ->
?line {messages,Messages} = process_info(Tracer, messages),
[{trace,Parent,'receive',a},
{trace,Parent,'receive',{trace_delivered,_,_}},
- {trace,Parent,'receive',c},
- {trace,Parent,'receive',{trace_delivered,_,_}}] = Messages,
+ {trace,Parent,'receive',c}|_] = Messages,
?line unlink(Tracer), exit(Tracer, kill),
?line unlink(Sender), exit(Sender, kill),