aboutsummaryrefslogtreecommitdiffstats
path: root/test/acceptor_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/acceptor_SUITE.erl')
-rw-r--r--test/acceptor_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/acceptor_SUITE.erl b/test/acceptor_SUITE.erl
index 03bcfd6..33ccd41 100644
--- a/test/acceptor_SUITE.erl
+++ b/test/acceptor_SUITE.erl
@@ -134,6 +134,13 @@ ssl_echo(_) ->
{'EXIT', _} = begin catch ranch:get_port(Name) end,
ok.
+-ifdef(TEST_NO_SNI).
+ssl_sni_echo(_) ->
+ {skip, "No SNI support."}.
+
+ssl_sni_fail(_) ->
+ {skip, "No SNI support."}.
+-else.
ssl_sni_echo(_) ->
doc("Ensure that SNI works with SSL transport."),
Name = name(),
@@ -160,6 +167,7 @@ ssl_sni_fail(_) ->
%% Make sure the listener stopped.
{'EXIT', _} = begin catch ranch:get_port(Name) end,
ok.
+-endif.
%% tcp.