aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-05-15 11:36:41 +0200
committerSiri Hansen <[email protected]>2013-05-15 11:36:41 +0200
commit61641a3e1d86014ce6e6a27ab27faac7ec461d70 (patch)
treed3936d3ff89dd013faa4d231c9d1841814a92c76 /lib/common_test
parente27cf4ac6a9d71fa38ea8c3af2287a817110aedd (diff)
downloadotp-61641a3e1d86014ce6e6a27ab27faac7ec461d70.tar.gz
otp-61641a3e1d86014ce6e6a27ab27faac7ec461d70.tar.bz2
otp-61641a3e1d86014ce6e6a27ab27faac7ec461d70.zip
[common_test] Add debug printouts in ct_telnet_client
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/src/ct_telnet_client.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_telnet_client.erl b/lib/common_test/src/ct_telnet_client.erl
index 7329498ed6..2cbcba9c77 100644
--- a/lib/common_test/src/ct_telnet_client.erl
+++ b/lib/common_test/src/ct_telnet_client.erl
@@ -143,7 +143,9 @@ loop(State, Sock, Acc) ->
State
end;
_ ->
- Pid ! {data,lists:reverse(lists:append(Acc))},
+ Data = lists:reverse(lists:append(Acc)),
+ dbg("get_data ~p\n",[Data]),
+ Pid ! {data,Data},
State
end,
loop(NewState, Sock, []);
@@ -161,7 +163,9 @@ loop(State, Sock, Acc) ->
NewAcc =
case erlang:is_process_alive(Pid) of
true ->
- Pid ! {data,lists:reverse(lists:append(Acc))},
+ Data = lists:reverse(lists:append(Acc)),
+ dbg("get_data_delayed ~p\n",[Data]),
+ Pid ! {data,Data},
[];
false ->
Acc