diff options
author | Lukas Larsson <[email protected]> | 2011-02-17 16:57:56 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-02-17 17:00:33 +0100 |
commit | d87708bf18d29c0a66f6654368b4553067e62394 (patch) | |
tree | 99767d1320b6bb9dd57d958182b6d78c6a55d179 /lib/common_test/test | |
parent | 8b9b6e1436e255b8cd40ed8ab44bc0c7a90ef798 (diff) | |
download | otp-d87708bf18d29c0a66f6654368b4553067e62394.tar.gz otp-d87708bf18d29c0a66f6654368b4553067e62394.tar.bz2 otp-d87708bf18d29c0a66f6654368b4553067e62394.zip |
Update example cth spec to reflect the implementation
Diffstat (limited to 'lib/common_test/test')
-rw-r--r-- | lib/common_test/test/ct_hooks_SUITE_data/cth/tests/empty_cth.erl | 5 |
1 files 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]}}),
|