aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/test/ttb_SUITE.erl
diff options
context:
space:
mode:
authorAndrzej Telezynski <[email protected]>2011-08-24 23:56:37 +0200
committerHenrik Nord <[email protected]>2011-08-30 15:22:20 +0200
commit1924817788f381da1b8356e336d62f4687717ee4 (patch)
tree647e0645e61e5ed472bb48ae280f61ac60449f76 /lib/observer/test/ttb_SUITE.erl
parentf7dc3bf45367fb22ababb85a783c2e9e9a1ada00 (diff)
downloadotp-1924817788f381da1b8356e336d62f4687717ee4.tar.gz
otp-1924817788f381da1b8356e336d62f4687717ee4.tar.bz2
otp-1924817788f381da1b8356e336d62f4687717ee4.zip
More robust testing of tracing with 'local' option.
Diffstat (limited to 'lib/observer/test/ttb_SUITE.erl')
-rw-r--r--lib/observer/test/ttb_SUITE.erl11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/observer/test/ttb_SUITE.erl b/lib/observer/test/ttb_SUITE.erl
index 5c85f143f9..4c7010e427 100644
--- a/lib/observer/test/ttb_SUITE.erl
+++ b/lib/observer/test/ttb_SUITE.erl
@@ -778,7 +778,7 @@ marking_call_handler() ->
(_,_,_,_) -> ok end, initial}.
counter_call_handler() ->
- {fun(_, A={trace_ts, _, call, _, _} ,_,State) -> State + 1;
+ {fun(_, {trace_ts, _, call, _, _} ,_,State) -> State + 1;
(A, end_of_trace, _, State) -> io:format(A,"~p.~n", [State]) end, 0}.
ret_caller_call_handler() ->
@@ -886,7 +886,12 @@ begin_trace_local(ServerNode, ClientNode, Dest) ->
check_size(N, Dest, Output, ServerNode, ClientNode) ->
?line begin_trace(ServerNode, ClientNode, Dest),
- ?line ttb_helper:msgs(N),
+ ?line case Dest of
+ {local, _} ->
+ ?line ttb_helper:msgs_ip(N);
+ _ ->
+ ?line ttb_helper:msgs(N)
+ end,
?line {_, D} = ttb:stop([fetch, return_fetch_dir]),
?line ttb:format(D, [{out, Output}, {handler, simple_call_handler()}]),
?line {ok, Ret} = file:consult(Output),
@@ -955,7 +960,7 @@ logfile_name_in_fetch_dir(Config) when is_list(Config) ->
?line ?t:stop_node(ClientNode),
?line P1 = lists:nth(3, string:tokens(filename:basename(Dir), "_")),
?line P2 = hd(string:tokens(P1, "-")),
- ?line File = P2.
+ ?line _File = P2.
upload_to_my_logdir(suite) ->
[];