aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2013-04-18 11:44:32 +0200
committerMicael Karlberg <[email protected]>2013-04-18 11:44:32 +0200
commitbcef9a8e27ef82d5c2b9ec3fda5a25b076cddc2b (patch)
tree6bbaba42748d1fcd112107f4fa7cc8d8246b3edb
parent317c83c20b1593353055ef894e1bff7a4b201638 (diff)
downloadotp-bcef9a8e27ef82d5c2b9ec3fda5a25b076cddc2b.tar.gz
otp-bcef9a8e27ef82d5c2b9ec3fda5a25b076cddc2b.tar.bz2
otp-bcef9a8e27ef82d5c2b9ec3fda5a25b076cddc2b.zip
[megaco] Debug printouts in megaco test server
-rw-r--r--lib/megaco/test/megaco_test_lib.erl32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/megaco/test/megaco_test_lib.erl b/lib/megaco/test/megaco_test_lib.erl
index b8cf7d2022..41b49f6d30 100644
--- a/lib/megaco/test/megaco_test_lib.erl
+++ b/lib/megaco/test/megaco_test_lib.erl
@@ -247,16 +247,16 @@ end_group(Mod, Group, Config) ->
%% This is for sub-SUITEs
t({_Mod, {NewMod, all}, _Groups}, _Config) when is_atom(NewMod) ->
- p("t(all) -> entry with"
- "~n NewMod: ~p", [NewMod]),
+ %% p("t(all) -> entry with"
+ %% "~n NewMod: ~p", [NewMod]),
t(NewMod);
t({Mod, {group, Name} = Group, Groups}, Config)
when is_atom(Mod) andalso is_atom(Name) andalso is_list(Groups) ->
- p("t(group) -> entry with"
- "~n Mod: ~p"
- "~n Name: ~p"
- "~n Groups: ~p"
- "~n Config: ~p", [Mod, Name, Groups, Config]),
+ %% p("t(group) -> entry with"
+ %% "~n Mod: ~p"
+ %% "~n Name: ~p"
+ %% "~n Groups: ~p"
+ %% "~n Config: ~p", [Mod, Name, Groups, Config]),
case lists:keysearch(Name, 1, Groups) of
{value, {Name, _Props, GroupsAndCases}} ->
try init_group(Mod, Name, Config) of
@@ -284,10 +284,10 @@ t({Mod, {group, Name} = Group, Groups}, Config)
end;
t({Mod, Fun, _}, Config)
when is_atom(Mod) andalso is_atom(Fun) ->
- p("t -> entry with"
- "~n Mod: ~p"
- "~n Fun: ~p"
- "~n Config: ~p", [Mod, Fun, Config]),
+ %% p("t -> entry with"
+ %% "~n Mod: ~p"
+ %% "~n Fun: ~p"
+ %% "~n Config: ~p", [Mod, Fun, Config]),
try apply(Mod, Fun, [suite]) of
[] ->
io:format("Eval: ~p:", [{Mod, Fun}]),
@@ -315,9 +315,9 @@ t({Mod, Fun, _}, Config)
end;
t(Mod, Config) when is_atom(Mod) ->
- p("t -> entry with"
- "~n Mod: ~p"
- "~n Config: ~p", [Mod, Config]),
+ %% p("t -> entry with"
+ %% "~n Mod: ~p"
+ %% "~n Config: ~p", [Mod, Config]),
%% This is assumed to be a test suite, so we start by calling
%% the top test suite function(s) (all/0 and groups/0).
try Mod:all() of
@@ -433,8 +433,8 @@ do_eval(ReplyTo, Mod, Fun, Config) ->
T1 = os:timestamp(),
try Mod:Fun(Config) of
Res ->
- p("do_eval -> done"
- "~n Res: ~p", [Res]),
+ %% p("do_eval -> done"
+ %% "~n Res: ~p", [Res]),
T2 = os:timestamp(),
Time = timer:now_diff(T2, T1),
display_tc_time(Time),