4
%% Copyright Ericsson AB 2004-2009. All Rights Reserved.
4
%% Copyright Ericsson AB 2004-2010. All Rights Reserved.
6
6
%% The contents of this file are subject to the Erlang Public License,
7
7
%% Version 1.1, (the "License"); you may not use this file except in
8
8
%% compliance with the License. You should have received a copy of the
9
9
%% Erlang Public License along with this software. If not, it can be
10
10
%% retrieved online at http://www.erlang.org/.
12
12
%% Software distributed under the License is distributed on an "AS IS"
13
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
%% the License for the specific language governing rights and limitations
15
15
%% under the License.
36
36
%% -compile(export_all).
40
init_per_testcase/2, fin_per_testcase/2,
39
all/0,groups/0,init_per_group/2,end_per_group/2,
40
init_per_testcase/2, end_per_testcase/2,
43
43
simple_register_and_unregister1/1,
44
44
simple_register_and_unregister2/1,
45
45
simple_register_and_unregister3/1,
123
123
{manager_log_dir, MgrLogDir} | Config].
126
fin_per_testcase(Case, Config) when is_list(Config) ->
127
p("fin_per_testcase -> Case: ~p", [Case]),
126
end_per_testcase(Case, Config) when is_list(Config) ->
127
p("end_per_testcase -> Case: ~p", [Case]),
128
128
% MgrTopDir = ?config(manager_dir, Config),
129
129
% ?DEL_DIR(MgrTopDir),
134
134
%% Test case definitions
135
135
%%======================================================================
143
register_user(suite) ->
145
simple_register_and_unregister1,
146
simple_register_and_unregister2,
147
simple_register_and_unregister3,
151
register_request_and_crash1,
152
register_request_and_crash2,
153
register_request_and_crash3,
154
simple_register_monitor_and_unregister1,
155
simple_register_monitor_and_unregister2,
156
simple_register_monitor_and_unregister3,
157
register_monitor_and_crash1,
158
register_monitor_and_crash2,
159
register_monitor_and_crash3,
160
register_monitor_and_crash4,
161
register_monitor_and_crash5,
162
register_monitor_request_and_crash1,
163
register_monitor_request_and_crash2,
164
register_monitor_request_and_crash3,
165
register_monitor_request_and_crash4
138
[{group, register_user}, {group, tickets}].
142
[simple_register_and_unregister1,
143
simple_register_and_unregister2,
144
simple_register_and_unregister3, register_and_crash1,
145
register_and_crash2, register_and_crash3,
146
register_request_and_crash1,
147
register_request_and_crash2,
148
register_request_and_crash3,
149
simple_register_monitor_and_unregister1,
150
simple_register_monitor_and_unregister2,
151
simple_register_monitor_and_unregister3,
152
register_monitor_and_crash1,
153
register_monitor_and_crash2,
154
register_monitor_and_crash3,
155
register_monitor_and_crash4,
156
register_monitor_and_crash5,
157
register_monitor_request_and_crash1,
158
register_monitor_request_and_crash2,
159
register_monitor_request_and_crash3,
160
register_monitor_request_and_crash4]},
161
{tickets, [], [otp7902]}].
163
init_per_group(_GroupName, Config) ->
166
end_per_group(_GroupName, Config) ->
175
174
%%======================================================================
822
821
"Start a single user process, "
823
822
"register-monitor one user and register one user, "
824
823
"crash the single user process.";
825
register_monitor_and_crash3(Conf) when is_list(Conf) ->
824
register_monitor_and_crash3(Conf) when is_list(Conf) ->
825
process_flag(trap_exit, true),
826
826
put(tname,rlac3),
828
%% <CONDITIONAL-SKIP>
829
%% The point of this is to catch machines running
833
case os:cmd("uname -m") of
835
%% io:format("found an i686 machine, "
836
%% "now check version~n", []),
838
{2, 6, Rev} when Rev >= 16 ->
840
{2, Min, _} when Min > 6 ->
842
{Maj, _, _} when Maj > 2 ->
851
Skippable = [{unix, [{linux, LinuxVersionVerify}]}],
852
Condition = fun() -> ?OS_BASED_SKIP(Skippable) end,
853
?NON_PC_TC_MAYBE_SKIP(Conf, Condition),
854
%% </CONDITIONAL-SKIP>
828
process_flag(trap_exit, true),
830
858
ConfDir = ?config(manager_conf_dir, Conf),
831
859
DbDir = ?config(manager_db_dir, Conf),