aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2018-03-05 10:25:44 +0100
committerPéter Dimitrov <[email protected]>2018-03-05 10:44:00 +0100
commit1285cd562cd65fa3be03ec4333ffa767df3c3176 (patch)
treeec9bd29ab7880d2a1429c9f28cb83b6e288e60e4 /lib
parentae2daff04fdf7aca199e799c4f3024519e7d53f0 (diff)
downloadotp-1285cd562cd65fa3be03ec4333ffa767df3c3176.tar.gz
otp-1285cd562cd65fa3be03ec4333ffa767df3c3176.tar.bz2
otp-1285cd562cd65fa3be03ec4333ffa767df3c3176.zip
inets: Skip http_unix_socket test group on Windows
Change-Id: I40262ded5a50456b21696350f793dfe9ed06d1fd
Diffstat (limited to 'lib')
-rw-r--r--lib/inets/test/httpc_SUITE.erl18
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/inets/test/httpc_SUITE.erl b/lib/inets/test/httpc_SUITE.erl
index 52d9e0603a..9bf58f18e5 100644
--- a/lib/inets/test/httpc_SUITE.erl
+++ b/lib/inets/test/httpc_SUITE.erl
@@ -164,14 +164,12 @@ init_per_suite(Config) ->
ServerRoot = filename:join(PrivDir, "server_root"),
DocRoot = filename:join(ServerRoot, "htdocs"),
setup_server_dirs(ServerRoot, DocRoot, DataDir),
- file:delete(?UNIX_SOCKET),
[{server_root, ServerRoot}, {doc_root, DocRoot} | Config].
end_per_suite(Config) ->
inets_test_lib:stop_apps([inets]),
PrivDir = proplists:get_value(priv_dir, Config),
inets_test_lib:del_dirs(PrivDir),
- file:delete(?UNIX_SOCKET),
ok.
%%--------------------------------------------------------------------
@@ -192,15 +190,29 @@ init_per_group(Group, Config0) when Group =:= sim_https; Group =:= https->
_:_ ->
{skip, "Crypto did not start"}
end;
-
+init_per_group(http_unix_socket = Group, Config0) ->
+ case os:type() of
+ {win32,_} ->
+ {skip, "Unix Domain Sockets are not supported on Windows"};
+ _ ->
+ file:delete(?UNIX_SOCKET),
+ start_apps(Group),
+ Config = proplists:delete(port, Config0),
+ Port = server_start(Group, server_config(Group, Config)),
+ [{port, Port} | Config]
+ end;
init_per_group(Group, Config0) ->
start_apps(Group),
Config = proplists:delete(port, Config0),
Port = server_start(Group, server_config(Group, Config)),
[{port, Port} | Config].
+end_per_group(http_unix_socket,_Config) ->
+ file:delete(?UNIX_SOCKET),
+ ok;
end_per_group(_, _Config) ->
ok.
+
do_init_per_group(Group, Config0) ->
Config = proplists:delete(port, Config0),
Port = server_start(Group, server_config(Group, Config)),