From d87708bf18d29c0a66f6654368b4553067e62394 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Thu, 17 Feb 2011 16:57:56 +0100 Subject: Update example cth spec to reflect the implementation --- lib/common_test/test/ct_hooks_SUITE_data/cth/tests/empty_cth.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/empty_cth.erl b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/empty_cth.erl index 7654a7ee2f..5d07cd3dea 100644 --- a/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/empty_cth.erl +++ b/lib/common_test/test/ct_hooks_SUITE_data/cth/tests/empty_cth.erl @@ -64,14 +64,15 @@ -type reason() :: term(). -type skip_or_fail() :: {skip, reason()} | {auto_skip, reason()} | - {fail, reason()}. + {fail, reason()} | + {'EXIT',reason()}. -record(state, { id = ?MODULE :: term()}). %% @doc Always called before any other callback function. Use this to initiate %% any common state. It should return an state for this CTH. -spec init(Id :: term(), Opts :: proplist()) -> - {Id :: term(), State :: #state{}}. + State :: #state{}. init(Id, Opts) -> gen_event:notify(?CT_EVMGR_REF, #event{ name = cth, node = node(), data = {?MODULE, init, [Id, Opts]}}), -- cgit v1.2.3