~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/common_test/test/ct_error_SUITE_data/error/test/lib_no_lines.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2010-03-09 17:34:57 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100309173457-4yd6hlcb2osfhx31
Tags: 1:13.b.4-dfsg-3
Manpages in section 1 are needed even if only arch-dependent packages are
built. So, re-enabled them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-module(lib_no_lines).
 
2
 
 
3
-export([do_error/0, do_exit/0, do_hang/0, do_throw/0]).
 
4
 
 
5
do_error() ->
 
6
    io:format("Here comes a badmatch error...~n"),
 
7
    [] = lists:seq(1,2),
 
8
    ok.
 
9
 
 
10
do_exit() ->
 
11
    io:format("Here comes a byebye exit...~n"),
 
12
    exit(byebye),
 
13
    ok.
 
14
 
 
15
do_hang() ->
 
16
    io:format("Here comes a hang...~n"),
 
17
    receive after infinity -> ok end,
 
18
    ok.
 
19
 
 
20
do_throw() ->
 
21
    io:format("Here comes a throw...~n"),
 
22
    throw(catch_me_if_u_can),
 
23
    ok.