aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/cth_conn_log.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2014-01-28 19:01:07 +0100
committerPeter Andersson <[email protected]>2014-01-28 19:04:05 +0100
commitc5079569ec2c6248f702b15c0e95def24411ca3c (patch)
tree079676231cc56b295f57dc48947fc8502f08e79d /lib/common_test/src/cth_conn_log.erl
parent95a574b3620ec3d7420c7807b2d84f4602512229 (diff)
downloadotp-c5079569ec2c6248f702b15c0e95def24411ca3c.tar.gz
otp-c5079569ec2c6248f702b15c0e95def24411ca3c.tar.bz2
otp-c5079569ec2c6248f702b15c0e95def24411ca3c.zip
Fix remaining problems using raw telnet logging for parallel test cases
Diffstat (limited to 'lib/common_test/src/cth_conn_log.erl')
-rw-r--r--lib/common_test/src/cth_conn_log.erl17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/common_test/src/cth_conn_log.erl b/lib/common_test/src/cth_conn_log.erl
index 050bda6eda..a731c8054c 100644
--- a/lib/common_test/src/cth_conn_log.erl
+++ b/lib/common_test/src/cth_conn_log.erl
@@ -140,19 +140,9 @@ pre_init_per_testcase(TestCase,Config,CthState) ->
GL = group_leader(),
Update =
fun(Init) when Init == undefined; Init == [] ->
-
- %%! --- Tue Jan 28 12:13:08 2014 --- peppe was here!
- io:format(user, "### ~p: ADDING NEW HANDLER FOR ~p~n",
- [TestCase,GL]),
-
error_logger:add_report_handler(ct_conn_log_h,{GL,Logs}),
[TestCase];
(PrevUsers) ->
-
- %%! --- Tue Jan 28 12:13:08 2014 --- peppe was here!
- io:format(user, "### ~p: CONNECTING ~p TO EXISTING HANDLER~n",
- [TestCase,GL]),
-
error_logger:info_report(update,{GL,Logs}),
receive
{updated,GL} ->
@@ -179,17 +169,10 @@ post_end_per_testcase(TestCase,_Config,Return,CthState) ->
deleted ->
[ct_util:delete_testdata({?MODULE,ConnMod}) ||
{ConnMod,_} <- CthState],
-
- %%! --- Tue Jan 28 13:29:37 2014 --- peppe was here!
- io:format(user, "### ~p: REMOVING ERROR LOGGER~n", [TestCase]),
-
error_logger:delete_report_handler(ct_conn_log_h);
{error,no_response} ->
exit({?MODULE,no_response_from_logger});
_PrevUsers ->
- %%! --- Tue Jan 28 13:29:37 2014 --- peppe was here!
- io:format(user, "### ~p: *NOT* REMOVING ERROR LOGGER~n", [TestCase]),
-
ok
end,
{Return,CthState}.