aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_error_SUITE_data/error/test/lib_no_lines.erl
blob: 4d2b08be03181b59a75d9ad2fe3d1534a95c3403 (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
-module(lib_no_lines).

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

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

do_exit() ->
    io:format("Here comes a byebye 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.