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

« back to all changes in this revision

Viewing changes to lib/compiler/test/misc_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 2006-2010. 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
18
18
%%
19
19
-module(misc_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
         tobias/1,empty_string/1,md5/1,silly_coverage/1,
23
25
         confused_literals/1,integer_encoding/1,override_bif/1]).
24
26
         
25
 
-include("test_server.hrl").
 
27
-include_lib("test_server/include/test_server.hrl").
26
28
 
27
29
%% For the override_bif testcase.
28
30
%% NB, no other testcases in this testsuite can use these without erlang:prefix!
45
47
    Dog = test_server:timetrap(?t:minutes(10)),
46
48
    [{watchdog,Dog}|Config].
47
49
 
48
 
fin_per_testcase(Case, Config) when is_atom(Case), is_list(Config) ->
 
50
end_per_testcase(Case, Config) when is_atom(Case), is_list(Config) ->
49
51
    Dog = ?config(watchdog, Config),
50
52
    ?t:timetrap_cancel(Dog),
51
53
    ok.
52
54
 
53
 
-spec all(any()) -> misc_SUITE_test_cases().
 
55
suite() -> [{ct_hooks,[ts_install_cth]}].
54
56
 
55
 
all(suite) ->
 
57
-spec all() -> misc_SUITE_test_cases().
 
58
all() -> 
56
59
    test_lib:recompile(?MODULE),
57
 
    [tobias,empty_string,md5,silly_coverage,confused_literals,
58
 
     integer_encoding, override_bif].
 
60
    [tobias, empty_string, md5, silly_coverage,
 
61
     confused_literals, integer_encoding, override_bif].
 
62
 
 
63
groups() -> 
 
64
    [].
 
65
 
 
66
init_per_suite(Config) ->
 
67
    Config.
 
68
 
 
69
end_per_suite(_Config) ->
 
70
    ok.
 
71
 
 
72
init_per_group(_GroupName, Config) ->
 
73
    Config.
 
74
 
 
75
end_per_group(_GroupName, Config) ->
 
76
    Config.
 
77
 
59
78
 
60
79
 
61
80
%%
160
179
    ?line expect_error(fun() -> v3_life:module(BadKernel, []) end),
161
180
 
162
181
    %% v3_codegen
163
 
    CodegenInput = {?MODULE,[{foo,0}],[],[{function,foo,0,[a|b],a,b}]},
 
182
    CodegenInput = {?MODULE,[{foo,0}],[],[{function,foo,0,[a|b],a,b,[]}]},
164
183
    ?line expect_error(fun() -> v3_codegen:module(CodegenInput, []) end),
165
184
 
166
185
    %% beam_block
168
187
                  [{function,foo,0,2,
169
188
                    [{label,1},
170
189
                     {func_info,{atom,?MODULE},{atom,foo},0},
171
 
                     {label,2}|non_proper_list],99}]},
 
190
                     {label,2}|non_proper_list]}],99},
172
191
    ?line expect_error(fun() -> beam_block:module(BlockInput, []) end),
173
192
 
174
193
    %% beam_bool