aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-03-27 21:20:31 +0100
committerSverker Eriksson <[email protected]>2014-03-27 21:20:31 +0100
commit93d5acafec2c65a2a2b511e27cb4e05186811e82 (patch)
tree9ab47eaaec0e001e7139d773cb655038333466d8 /erts
parentd59a203a4e79c8ef3d4470e0039e1d4dc99cbce5 (diff)
downloadotp-93d5acafec2c65a2a2b511e27cb4e05186811e82.tar.gz
otp-93d5acafec2c65a2a2b511e27cb4e05186811e82.tar.bz2
otp-93d5acafec2c65a2a2b511e27cb4e05186811e82.zip
erts: Fix bug in test case port_SUITE:otp_5119
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/test/port_SUITE.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/emulator/test/port_SUITE.erl b/erts/emulator/test/port_SUITE.erl
index bacb73671e..e01b2f253b 100644
--- a/erts/emulator/test/port_SUITE.erl
+++ b/erts/emulator/test/port_SUITE.erl
@@ -1698,12 +1698,13 @@ otp_5119(Config) when is_list(Config) ->
Path = ?config(data_dir, Config),
ok = load_driver(Path, "exit_drv"),
PI1 = port_ix(otp_5119_fill_empty_port_tab([])),
- PI2 = port_ix(erlang:open_port({spawn, "exit_drv"}, [])),
+ Port2 = erlang:open_port({spawn, "exit_drv"}, []),
+ PI2 = port_ix(Port2),
{PortIx1, PortIx2} = case PI2 > PI1 of
true ->
{PI1, PI2};
false ->
- {port_ix(otp_5119_fill_empty_port_tab([PI2])),
+ {port_ix(otp_5119_fill_empty_port_tab([Port2])),
port_ix(erlang:open_port({spawn, "exit_drv"}, []))}
end,
MaxPorts = max_ports(),