aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/port_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-03-27 14:39:55 +0100
committerLukas Larsson <[email protected]>2013-03-27 14:39:55 +0100
commitd56c2ab2dcb4aa9ca62a4a1bd1f614120c29ffd7 (patch)
treef5c1c900813f3a107a188df8cdf15221557a4690 /erts/emulator/test/port_SUITE.erl
parent86a3a06b0a4256d06e4979e02b848c5d9a1f9967 (diff)
downloadotp-d56c2ab2dcb4aa9ca62a4a1bd1f614120c29ffd7.tar.gz
otp-d56c2ab2dcb4aa9ca62a4a1bd1f614120c29ffd7.tar.bz2
otp-d56c2ab2dcb4aa9ca62a4a1bd1f614120c29ffd7.zip
Run iter max ports on a seperate vm with smaller port table
Diffstat (limited to 'erts/emulator/test/port_SUITE.erl')
-rw-r--r--erts/emulator/test/port_SUITE.erl11
1 files changed, 9 insertions, 2 deletions
diff --git a/erts/emulator/test/port_SUITE.erl b/erts/emulator/test/port_SUITE.erl
index 5c15e85296..e467e844b3 100644
--- a/erts/emulator/test/port_SUITE.erl
+++ b/erts/emulator/test/port_SUITE.erl
@@ -92,7 +92,7 @@
spawn_driver/1, spawn_executable/1, close_deaf_port/1,
unregister_name/1, parallelism_option/1]).
--export([]).
+-export([do_iter_max_ports/2]).
%% Internal exports.
-export([tps/3]).
@@ -635,9 +635,16 @@ iter_max_ports_test(Config) ->
{win32,_} -> 4;
_ -> 10
end,
- L = do_iter_max_ports(Iters, Command),
+ %% 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,"+Q 2048 -pa " ++ Dir}]),
+ L = rpc:call(Node,?MODULE,do_iter_max_ports,[Iters, Command]),
+ test_server:stop_node(Node),
+
io:format("Result: ~p",[L]),
all_equal(L),
+ all_equal(L),
test_server:timetrap_cancel(Dog),
{comment, "Max ports: " ++ integer_to_list(hd(L))}.