4
%% Copyright Ericsson AB 2010. 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
19
-module(cfg_error_12_SUITE).
23
-include_lib("common_test/include/ct.hrl").
25
init_per_testcase(_, Config) ->
28
end_per_testcase(tc2, _Config) ->
30
exit(this_should_not_be_printed);
31
end_per_testcase(tc4, _Config) ->
33
exit(this_should_not_be_printed);
34
end_per_testcase(_, _) ->
40
%%%-----------------------------------------------------------------
42
put('$test_server_framework_test',
43
fun(init_tc, _Default) ->
44
ct:pal("init_tc(~p): Night time...",[self()]),
46
ct:pal("init_tc(~p): Day time!",[self()]),
47
exit(this_should_not_be_printed);
48
(_, Default) -> Default
53
exit(this_should_not_be_printed).
55
%%%-----------------------------------------------------------------
62
%%%-----------------------------------------------------------------
67
put('$test_server_framework_test',
68
fun(end_tc, _Default) ->
69
ct:pal("end_tc(~p): Night time...",[self()]),
71
ct:pal("end_tc(~p): Day time!",[self()]);
72
(_, Default) -> Default
74
{comment,"should succeed since ct_fw cancels timetrap in end_tc"}.
76
%%%-----------------------------------------------------------------
78
put('$test_server_framework_test',
79
fun(end_tc, _Default) ->
80
ct:pal("end_tc(~p): Night time...",[self()]),
82
ct:pal("end_tc(~p): Day time!",[self()]);
83
(_, Default) -> Default