~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

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).