aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_error_SUITE_data/error/test/lib_lines.erl
blob: b8f5814004ec993e6c4f3d720a8c89e1e47bba2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-module(lib_lines).

-export([do_error/0, do_exit/0, do_hang/0, do_throw/0]).

-include("ct.hrl").

do_error() ->
    io:format("Here comes an error...~n"),
    [] = lists:seq(1,2),
    ok.

do_exit() ->
    io:format("Here comes an exit...~n"),
    exit(byebye),
    ok.

do_hang() ->
    io:format("Here comes a hang...~n"),
    receive after infinity -> ok end,
    ok.

do_throw() ->
    io:format("Here comes a throw...~n"),
    throw(catch_me_if_u_can),
    ok.