diff options
author | Rickard Green <[email protected]> | 2019-01-23 15:57:03 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2019-01-23 15:57:03 +0100 |
commit | a4641c5b3469d2e3cb9b0937ed941748fbbf2036 (patch) | |
tree | 66791aea3fda66e16a5041d1c6a37726e5880bba /lib/erl_interface/test/ei_accept_SUITE.erl | |
parent | a8364425a7190b65cd33e58ac3c155a77c462b74 (diff) | |
parent | eaeec753c035c2214be2930290a0a6de411566b0 (diff) | |
download | otp-a4641c5b3469d2e3cb9b0937ed941748fbbf2036.tar.gz otp-a4641c5b3469d2e3cb9b0937ed941748fbbf2036.tar.bz2 otp-a4641c5b3469d2e3cb9b0937ed941748fbbf2036.zip |
Merge branch 'rickard/ei-ext/OTP-15442' into rickard/ei-ext-maint/OTP-15442
Diffstat (limited to 'lib/erl_interface/test/ei_accept_SUITE.erl')
-rw-r--r-- | lib/erl_interface/test/ei_accept_SUITE.erl | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/erl_interface/test/ei_accept_SUITE.erl b/lib/erl_interface/test/ei_accept_SUITE.erl index 78a433d21b..9c9c3f86b6 100644 --- a/lib/erl_interface/test/ei_accept_SUITE.erl +++ b/lib/erl_interface/test/ei_accept_SUITE.erl @@ -81,12 +81,10 @@ ei_accept(Config) when is_list(Config) -> ei_threaded_accept(Config) when is_list(Config) -> Einode = filename:join(proplists:get_value(data_dir, Config), "eiaccnode"), - N = 1, % 3, + N = 3, Host = atom_to_list(node()), - Port = 6767, - start_einode(Einode, N, Host, Port), + start_einode(Einode, N, Host), io:format("started eiaccnode"), - %%spawn_link(fun() -> start_einode(Einode, N, Host, Port) end), TestServerPid = self(), [spawn_link(fun() -> send_rec_einode(I, TestServerPid) end) || I <- lists:seq(0, N-1)], [receive I -> ok end || I <- lists:seq(0, N-1) ], @@ -159,10 +157,9 @@ send_rec_einode(N, TestServerPid) -> ct:fail(EINode) end. -start_einode(Einode, N, Host, Port) -> +start_einode(Einode, N, Host) -> Einodecmd = Einode ++ " " ++ atom_to_list(erlang:get_cookie()) - ++ " " ++ integer_to_list(N) ++ " " ++ Host ++ " " - ++ integer_to_list(Port) ++ " nothreads", + ++ " " ++ integer_to_list(N) ++ " " ++ Host, io:format("Einodecmd ~p ~n", [Einodecmd]), open_port({spawn, Einodecmd}, []), ok. |