aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-12-20 15:57:54 +0100
committerLoïc Hoguin <[email protected]>2012-12-20 15:57:54 +0100
commitf26401af19bddd74ddd1755041372c737a995b01 (patch)
treee3683c616282facf936d592ca2d6fd2a578c87da /test
parent69192a2a3c5fbfa00c3f4fb7b9628512c8ef55ae (diff)
downloadranch-f26401af19bddd74ddd1755041372c737a995b01.tar.gz
ranch-f26401af19bddd74ddd1755041372c737a995b01.tar.bz2
ranch-f26401af19bddd74ddd1755041372c737a995b01.zip
Return {error, badarg} if start_listener got a bad transport module
Diffstat (limited to 'test')
-rw-r--r--test/acceptor_SUITE.erl15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/acceptor_SUITE.erl b/test/acceptor_SUITE.erl
index 6dd4a9c..0b86a4d 100644
--- a/test/acceptor_SUITE.erl
+++ b/test/acceptor_SUITE.erl
@@ -24,6 +24,9 @@
-export([init_per_group/2]).
-export([end_per_group/2]).
+%% misc.
+-export([misc_bad_transport/1]).
+
%% ssl.
-export([ssl_accept_error/1]).
-export([ssl_active_echo/1]).
@@ -39,7 +42,7 @@
%% ct.
all() ->
- [{group, tcp}, {group, ssl}].
+ [{group, tcp}, {group, ssl}, {group, misc}].
groups() ->
[{tcp, [
@@ -52,6 +55,8 @@ groups() ->
ssl_accept_error,
ssl_active_echo,
ssl_echo
+ ]}, {misc, [
+ misc_bad_transport
]}].
init_per_suite(Config) ->
@@ -78,6 +83,14 @@ end_per_group(ssl, _) ->
end_per_group(_, _) ->
ok.
+%% misc.
+
+misc_bad_transport(_) ->
+ {error, badarg} = ranch:start_listener(misc_bad_transport, 1,
+ bad_transport, [{port, 0}],
+ echo_protocol, []),
+ ok.
+
%% ssl.
ssl_accept_error(Config) ->