aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/gen_tcp_misc_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-10-02 15:48:17 +0200
committerLukas Larsson <[email protected]>2013-01-21 16:24:08 +0100
commit349101341da65b20bea9254a4deb44c7f89dc7eb (patch)
tree8a3ce3a97452a737bb19bac1d3eeda1c7adbd04d /lib/kernel/test/gen_tcp_misc_SUITE.erl
parentab4dbd7a5efdd4e6e059b9287704c85c01f09fc9 (diff)
downloadotp-349101341da65b20bea9254a4deb44c7f89dc7eb.tar.gz
otp-349101341da65b20bea9254a4deb44c7f89dc7eb.tar.bz2
otp-349101341da65b20bea9254a4deb44c7f89dc7eb.zip
Isolate iter_max_socks to own node
This prevents this testcase from ruining the entire testrun if it should fail critically.
Diffstat (limited to 'lib/kernel/test/gen_tcp_misc_SUITE.erl')
-rw-r--r--lib/kernel/test/gen_tcp_misc_SUITE.erl10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/kernel/test/gen_tcp_misc_SUITE.erl b/lib/kernel/test/gen_tcp_misc_SUITE.erl
index 5d45b91ee5..93dc2a69d1 100644
--- a/lib/kernel/test/gen_tcp_misc_SUITE.erl
+++ b/lib/kernel/test/gen_tcp_misc_SUITE.erl
@@ -47,7 +47,7 @@
%% Internal exports.
-export([sender/3, not_owner/1, passive_sockets_server/2, priority_server/1,
- otp_7731_server/1, zombie_server/2]).
+ otp_7731_server/1, zombie_server/2, do_iter_max_socks/2]).
init_per_testcase(_Func, Config) when is_list(Config) ->
Dog = test_server:timetrap(test_server:seconds(240)),
@@ -589,7 +589,13 @@ iter_max_socks(doc) ->
"that we get the same number of sockets every time."];
iter_max_socks(Config) when is_list(Config) ->
N = 20,
- L = do_iter_max_socks(N, initalize),
+ %% Run on a different node in order to limit the effect if this test fails.
+ Dir = filename:dirname(code:which(?MODULE)),
+ {ok,Node} = test_server:start_node(test_iter_max_socks,slave,
+ [{args,"-pa " ++ Dir}]),
+ L = rpc:call(Node,?MODULE,do_iter_max_socks,[N, initalize]),
+ test_server:stop_node(Node),
+
io:format("Result: ~p",[L]),
all_equal(L),
{comment, "Max sockets: " ++ integer_to_list(hd(L))}.