diff options
author | Lukas Larsson <lukas@erlang.org> | 2017-08-29 10:17:15 +0200 |
---|---|---|
committer | Lukas Larsson <lukas@erlang.org> | 2017-08-29 10:17:49 +0200 |
commit | 18144987906393df88a85d1cc5a7a2b9773f6dda (patch) | |
tree | 3be3816d204550f94526b526308e8a3177950118 /erts/emulator/test | |
parent | d728fc61bc2d82ea4d7246b16a9b04694971b87b (diff) | |
download | otp-18144987906393df88a85d1cc5a7a2b9773f6dda.tar.gz otp-18144987906393df88a85d1cc5a7a2b9773f6dda.tar.bz2 otp-18144987906393df88a85d1cc5a7a2b9773f6dda.zip |
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.
Diffstat (limited to 'erts/emulator/test')
-rw-r--r-- | erts/emulator/test/port_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
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), |