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

« back to all changes in this revision

Viewing changes to lib/compiler/test/pmod_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 2004-2010. All Rights Reserved.
 
4
%% Copyright Ericsson AB 2004-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
18
18
%%
19
19
-module(pmod_SUITE).
20
20
 
21
 
-export([all/1,init_per_testcase/2,fin_per_testcase/2,
 
21
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, 
 
22
         init_per_group/2,end_per_group/2,
 
23
         init_per_testcase/2,end_per_testcase/2,
22
24
         basic/1, otp_8447/1]).
23
25
 
24
 
-include("test_server.hrl").
25
 
 
26
 
all(suite) ->
 
26
-include_lib("test_server/include/test_server.hrl").
 
27
 
 
28
suite() -> [{ct_hooks,[ts_install_cth]}].
 
29
 
 
30
all() -> 
27
31
    test_lib:recompile(?MODULE),
28
32
    [basic, otp_8447].
29
33
 
 
34
groups() -> 
 
35
    [].
 
36
 
 
37
init_per_suite(Config) ->
 
38
    Config.
 
39
 
 
40
end_per_suite(_Config) ->
 
41
    ok.
 
42
 
 
43
init_per_group(_GroupName, Config) ->
 
44
    Config.
 
45
 
 
46
end_per_group(_GroupName, Config) ->
 
47
    Config.
 
48
 
 
49
 
30
50
init_per_testcase(Case, Config) when is_atom(Case), is_list(Config) ->
31
51
    Dog = test_server:timetrap(?t:minutes(1)),
32
52
    [{watchdog,Dog}|Config].
33
53
 
34
 
fin_per_testcase(Case, Config) when is_atom(Case), is_list(Config) ->
 
54
end_per_testcase(Case, Config) when is_atom(Case), is_list(Config) ->
35
55
    Dog = ?config(watchdog, Config),
36
56
    ?t:timetrap_cancel(Dog),
37
57
    ok.
76
96
    ?line error = Prop4:bar_bar({s,a,b}),
77
97
    ?line error = Prop4:bar_bar([]),
78
98
 
 
99
    %% Call from a fun.
 
100
    Fun = fun(Arg) -> Prop4:bar(Arg) end,
 
101
    ?line ok = Fun({s,0}),
 
102
 
 
103
    [{y,[1,2]},{x,[5,19]}] = Prop4:collapse([{y,[2,1]},{x,[19,5]}]),
79
104
    ok.
80
105
 
81
106
otp_8447(Config) when is_list(Config) ->