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

« back to all changes in this revision

Viewing changes to erts/emulator/test/erl_link_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 2001-2009. All Rights Reserved.
 
4
%% Copyright Ericsson AB 2001-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
28
28
-author('rickard.green@uab.ericsson.se').
29
29
 
30
30
%-define(line_trace, 1).
31
 
-include("test_server.hrl").
 
31
-include_lib("test_server/include/test_server.hrl").
32
32
 
33
 
-export([all/1]).
 
33
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, 
 
34
         init_per_group/2,end_per_group/2]).
34
35
 
35
36
% Test cases
36
37
-export([links/1,
46
47
         otp_5772_dist_monitor/1,
47
48
         otp_7946/1]).
48
49
 
49
 
-export([init_per_testcase/2, fin_per_testcase/2, end_per_suite/1]).
 
50
-export([init_per_testcase/2, end_per_testcase/2]).
50
51
 
51
52
% Internal exports
52
53
-export([test_proc/0]).
77
78
 
78
79
 
79
80
 
80
 
all(suite) -> [links, dist_links, monitor_nodes, process_monitors,
81
 
               dist_process_monitors, busy_dist_port_monitor,
82
 
               busy_dist_port_link, otp_5772_link, otp_5772_dist_link,
83
 
               otp_5772_monitor, otp_5772_dist_monitor,
84
 
               otp_7946].
 
81
suite() -> [{ct_hooks,[ts_install_cth]}].
 
82
 
 
83
all() -> 
 
84
    [links, dist_links, monitor_nodes, process_monitors,
 
85
     dist_process_monitors, busy_dist_port_monitor,
 
86
     busy_dist_port_link, otp_5772_link, otp_5772_dist_link,
 
87
     otp_5772_monitor, otp_5772_dist_monitor, otp_7946].
 
88
 
 
89
groups() -> 
 
90
    [].
 
91
 
 
92
init_per_suite(Config) ->
 
93
    Config.
 
94
 
 
95
end_per_suite(_Config) ->
 
96
    catch erts_debug:set_internal_state(available_internal_state, false).
 
97
 
 
98
init_per_group(_GroupName, Config) ->
 
99
    Config.
 
100
 
 
101
end_per_group(_GroupName, Config) ->
 
102
    Config.
 
103
 
85
104
 
86
105
links(doc) -> ["Tests node local links"];
87
106
links(suite) -> [];
678
697
    end,
679
698
    ?line [{watchdog, Dog}|Config].
680
699
 
681
 
fin_per_testcase(_Func, Config) ->
 
700
end_per_testcase(_Func, Config) ->
682
701
    ?line Dog = ?config(watchdog, Config),
683
702
    ?line ?t:timetrap_cancel(Dog).
684
703
 
685
 
end_per_suite(_Config) ->
686
 
    catch erts_debug:set_internal_state(available_internal_state, false).
687
 
 
688
704
tp_call(Tp, Fun) ->
689
705
    ?line R = make_ref(),
690
706
    ?line Tp ! {call, self(), R, Fun},
1050
1066
-define(DOP_SEND,               2).
1051
1067
-define(DOP_EXIT,               3).
1052
1068
-define(DOP_UNLINK,             4).
1053
 
-define(DOP_NODE_LINK,          5).
1054
1069
-define(DOP_REG_SEND,           6).
1055
1070
-define(DOP_GROUP_LEADER,       7).
1056
1071
-define(DOP_EXIT2,              8).