4
%% Copyright Ericsson AB 2010-2011. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
20
-module(ct_scope_per_tc_cth_SUITE).
22
-suite_defaults([{timetrap, {minutes, 10}}]).
24
%% Note: This directive should only be used in test suites.
29
%% Test server callback functions
30
%%--------------------------------------------------------------------
33
%% A list of key/value pairs, holding the test case configuration.
35
%% Initiation before the whole suite
37
%% Note: This function is free to add any key/value pairs to the Config
38
%% variable, but should NOT alter/remove any existing entries.
40
%% @spec init_per_suite(Config) -> Config
42
%%--------------------------------------------------------------------
43
init_per_suite(Config) ->
46
%%--------------------------------------------------------------------
49
%% A list of key/value pairs, holding the test case configuration.
51
%% Cleanup after the whole suite
53
%% @spec end_per_suite(Config) -> _
55
%%--------------------------------------------------------------------
56
end_per_suite(_Config) ->
59
%%--------------------------------------------------------------------
62
%% Name of the test case that is about to be run.
64
%% A list of key/value pairs, holding the test case configuration.
66
%% Initiation before each test case
68
%% Note: This function is free to add any key/value pairs to the Config
69
%% variable, but should NOT alter/remove any existing entries.
70
%% Initiation before each test case
72
%% @spec init_per_testcase(TestCase, Config) -> Config
74
%%--------------------------------------------------------------------
75
init_per_testcase(_TestCase, Config) ->
76
[{ct_hooks,[empty_cth]}|Config].
78
%%--------------------------------------------------------------------
81
%% Name of the test case that is about to be run.
83
%% A list of key/value pairs, holding the test case configuration.
85
%% Cleanup after each test case
87
%% @spec end_per_testcase(TestCase, Config) -> _
89
%%--------------------------------------------------------------------
90
end_per_testcase(_TestCase, _Config) ->
93
%%--------------------------------------------------------------------
97
%% Name of a test case.
99
%% Returns a list of all test cases in this test suite
101
%% @spec all() -> TestCases
103
%%--------------------------------------------------------------------
107
%% Test cases starts here.
108
%%--------------------------------------------------------------------
109
test_case(Config) when is_list(Config) ->