diff options
author | Lukas Larsson <[email protected]> | 2013-06-03 17:36:40 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2013-06-03 17:36:40 +0200 |
commit | 8bd1897dac5e2774a6fce56de61b169bd7267bbf (patch) | |
tree | 79e0f90f0974a503e1742d8709b39b75baa3a581 /erts | |
parent | 2e0edbce734dbc684abbe7d415b4e94603a45846 (diff) | |
parent | 6906875260e2b70d3fd405f3eb6eab625814d105 (diff) | |
download | otp-8bd1897dac5e2774a6fce56de61b169bd7267bbf.tar.gz otp-8bd1897dac5e2774a6fce56de61b169bd7267bbf.tar.bz2 otp-8bd1897dac5e2774a6fce56de61b169bd7267bbf.zip |
Merge branch 'maint'
* maint:
Do not fail if there is no variables file
Run iter max ports on a seperate vm with smaller port table
Set max ports for slave node
Decrease sleep timer
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/test/port_SUITE.erl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/erts/emulator/test/port_SUITE.erl b/erts/emulator/test/port_SUITE.erl index 8f7f98f9e3..498c98fb31 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))}. @@ -670,7 +677,7 @@ close_ports([]) -> ok. open_ports(Name, Settings) -> - test_server:sleep(50), + test_server:sleep(5), case catch open_port(Name, Settings) of P when is_port(P) -> [P| open_ports(Name, Settings)]; |