From 18144987906393df88a85d1cc5a7a2b9773f6dda Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Tue, 29 Aug 2017 10:17:15 +0200 Subject: erts: Fix port_SUITE:dropped_commands tc We start the port in the started process in order to get the messages in the correct place and also so that unloading the port driver does not kill the test process. --- erts/emulator/test/port_SUITE.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erts/emulator/test/port_SUITE.erl b/erts/emulator/test/port_SUITE.erl index ab0b1a82bd..df28ab0e7b 100644 --- a/erts/emulator/test/port_SUITE.erl +++ b/erts/emulator/test/port_SUITE.erl @@ -572,9 +572,10 @@ dropped_commands(Config, Outputv, Cmd) -> ok. dropped_commands_test(Cmd) -> - Port = erlang:open_port({spawn_driver, "echo_drv"}, [{parallelism, true}]), spawn_monitor( fun() -> + Port = erlang:open_port({spawn_driver, "echo_drv"}, + [{parallelism, true}]), [spawn_link(fun() -> spin(Port, Cmd) end) || _ <- lists:seq(1,8)], timer:sleep(5), port_close(Port), -- cgit v1.2.3