aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_event_handler_SUITE_data/eh_A.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common_test/test/ct_event_handler_SUITE_data/eh_A.erl')
-rw-r--r--lib/common_test/test/ct_event_handler_SUITE_data/eh_A.erl13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_event_handler_SUITE_data/eh_A.erl b/lib/common_test/test/ct_event_handler_SUITE_data/eh_A.erl
index 6e526f15a2..cb6d4c3aaa 100644
--- a/lib/common_test/test/ct_event_handler_SUITE_data/eh_A.erl
+++ b/lib/common_test/test/ct_event_handler_SUITE_data/eh_A.erl
@@ -44,6 +44,19 @@
%% Description: Whenever a new event handler is added to an event manager,
%% this function is called to initialize the event handler.
%%--------------------------------------------------------------------
+init(String = [X|_]) when is_integer(X) ->
+ case erl_scan:string(String++".") of
+ {ok,Ts,_} ->
+ case erl_parse:parse_term(Ts) of
+ {ok,Args} ->
+ init(Args);
+ _ ->
+ init(String)
+ end;
+ _ ->
+ init(String)
+ end;
+
init(Args) ->
S1 = case lists:keysearch(cbm, 1, Args) of