aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2012-02-23 18:15:49 +0100
committerPeter Andersson <[email protected]>2012-02-23 18:15:49 +0100
commita1a72e0378b38d6af412fe889b586a11aeab7fee (patch)
tree1c4c05cb700bab9d0ffd4bc9f6b2e8f07d7d876e
parentf1956846b7c8b42f51ff10467f28aee1bffb711f (diff)
downloadotp-a1a72e0378b38d6af412fe889b586a11aeab7fee.tar.gz
otp-a1a72e0378b38d6af412fe889b586a11aeab7fee.tar.bz2
otp-a1a72e0378b38d6af412fe889b586a11aeab7fee.zip
Fix problem with large fun environment being copied unnecessarily
-rw-r--r--lib/common_test/src/ct_logs.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_logs.erl b/lib/common_test/src/ct_logs.erl
index 7a04bbf58e..5f0626c0b0 100644
--- a/lib/common_test/src/ct_logs.erl
+++ b/lib/common_test/src/ct_logs.erl
@@ -635,11 +635,11 @@ create_io_fun(FromPid, State) ->
%% we have to build one io-list of all strings
%% before printing, or other io printouts (made in
%% parallel) may get printed between this header
- %% and footer
+ %% and footer
+ Fd = State#logger_state.ct_log_fd,
fun({Str,Args}, IoList) ->
case catch io_lib:format(Str,Args) of
{'EXIT',_Reason} ->
- Fd = State#logger_state.ct_log_fd,
io:format(Fd, "Logging fails! Str: ~p, Args: ~p~n",
[Str,Args]),
%% stop the testcase, we need to see the fault