~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to erts/emulator/test/signal_SUITE.erl

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%%
2
2
%% %CopyrightBegin%
3
3
%% 
4
 
%% Copyright Ericsson AB 2006-2009. All Rights Reserved.
 
4
%% Copyright Ericsson AB 2006-2011. All Rights Reserved.
5
5
%% 
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
30
30
-define(DEFAULT_TIMEOUT_SECONDS, 120).
31
31
 
32
32
%-define(line_trace, 1).
33
 
-include("test_server.hrl").
34
 
-export([all/1]).
 
33
-include_lib("test_server/include/test_server.hrl").
 
34
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, 
 
35
         init_per_group/2,end_per_group/2]).
35
36
 
36
37
% Test cases
37
38
-export([xm_sig_order/1,
49
50
         pending_exit_group_leader/1,
50
51
         exit_before_pending_exit/1]).
51
52
 
52
 
-export([init_per_testcase/2, fin_per_testcase/2, end_per_suite/1]).
 
53
-export([init_per_testcase/2, end_per_testcase/2]).
53
54
 
54
55
init_per_testcase(Func, Config) when is_atom(Func), is_list(Config) ->
55
56
    ?line Dog = ?t:timetrap(?t:seconds(?DEFAULT_TIMEOUT_SECONDS)),
56
57
    available_internal_state(true),
57
58
    ?line [{testcase, Func},{watchdog, Dog}|Config].
58
59
 
59
 
fin_per_testcase(_Func, Config) ->
 
60
end_per_testcase(_Func, Config) ->
60
61
    ?line Dog = ?config(watchdog, Config),
61
62
    ?line ?t:timetrap_cancel(Dog).
62
63
 
 
64
init_per_suite(Config) ->
 
65
    Config.
 
66
 
63
67
end_per_suite(_Config) ->
64
68
    available_internal_state(true),
65
 
    erts_debug:set_internal_state(not_running_optimization, true),
 
69
    catch erts_debug:set_internal_state(not_running_optimization, true),
66
70
    available_internal_state(false).
67
71
 
68
 
all(suite) ->
69
 
    [xm_sig_order,
70
 
     pending_exit_unlink_process,
 
72
suite() -> [{ct_hooks,[ts_install_cth]}].
 
73
 
 
74
all() -> 
 
75
    [xm_sig_order, pending_exit_unlink_process,
71
76
     pending_exit_unlink_dist_process,
72
 
     pending_exit_unlink_port,
73
 
     pending_exit_trap_exit,
74
 
     pending_exit_receive,
75
 
     pending_exit_trap_exit,
76
 
     pending_exit_gc,
77
 
     pending_exit_is_process_alive,
 
77
     pending_exit_unlink_port, pending_exit_trap_exit,
 
78
     pending_exit_receive, pending_exit_trap_exit,
 
79
     pending_exit_gc, pending_exit_is_process_alive,
78
80
     pending_exit_process_display,
79
81
     pending_exit_process_info_1,
80
 
     pending_exit_process_info_2,
81
 
     pending_exit_group_leader,
 
82
     pending_exit_process_info_2, pending_exit_group_leader,
82
83
     exit_before_pending_exit].
83
84
 
 
85
groups() -> 
 
86
    [].
 
87
 
 
88
init_per_group(_GroupName, Config) ->
 
89
    Config.
 
90
 
 
91
end_per_group(_GroupName, Config) ->
 
92
    Config.
 
93
 
 
94
 
84
95
xm_sig_order(doc) -> ["Test that exit signals and messages are received "
85
96
                      "in correct order"];
86
97
xm_sig_order(suite) -> [];