aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-10-11 15:18:30 +0200
committerFredrik Gustafsson <[email protected]>2013-10-11 15:18:30 +0200
commit8dfd57ab8581813bee1404e5fe2d74081d9c1c0a (patch)
tree33e9679c2522d77dafc756fb9eae74944272fe80
parentb732d1df54c9567cf15015bf549b812252299d9f (diff)
downloadotp-8dfd57ab8581813bee1404e5fe2d74081d9c1c0a.tar.gz
otp-8dfd57ab8581813bee1404e5fe2d74081d9c1c0a.tar.bz2
otp-8dfd57ab8581813bee1404e5fe2d74081d9c1c0a.zip
common_test: added code_change/3 for gen_event behaviour
-rw-r--r--lib/common_test/src/cth_log_redirect.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/common_test/src/cth_log_redirect.erl b/lib/common_test/src/cth_log_redirect.erl
index b7f0e1fd7f..f5e769e1ba 100644
--- a/lib/common_test/src/cth_log_redirect.erl
+++ b/lib/common_test/src/cth_log_redirect.erl
@@ -34,13 +34,15 @@
%% Event handler Callbacks
-export([init/1,
handle_event/2, handle_call/2, handle_info/2,
- terminate/2]).
+ terminate/2, code_change/3]).
%% Other
-export([handle_remote_events/1]).
-include("ct.hrl").
+-behaviour(gen_event).
+
-record(eh_state, {log_func,
curr_suite,
curr_group,
@@ -236,3 +238,6 @@ format_header(#eh_state{curr_suite = Suite,
curr_func = TC}) ->
io_lib:format("System report during ~w:~w/1 in ~w",
[Suite,TC,Group]).
+
+code_change(_OldVsn, State, _Extra) ->
+ {ok, State}.