aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2014-07-22 17:37:52 +0200
committerHenrik Nord <[email protected]>2014-07-22 17:37:52 +0200
commita60f3d879dfcdd018f1fea20790be901fbafeae4 (patch)
treeb6cc19578e968c38a2510585e481b98c279bf7c4 /lib/kernel/test
parent03a1fcf5346233f76c8dc50844e132f4760154d6 (diff)
downloadotp-a60f3d879dfcdd018f1fea20790be901fbafeae4.tar.gz
otp-a60f3d879dfcdd018f1fea20790be901fbafeae4.tar.bz2
otp-a60f3d879dfcdd018f1fea20790be901fbafeae4.zip
Fix default behaviour for legacy fdopen
Update testcase for gen_udp:open/2 with option fd
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/gen_udp_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/test/gen_udp_SUITE.erl b/lib/kernel/test/gen_udp_SUITE.erl
index cd768813cf..8cc811e0b5 100644
--- a/lib/kernel/test/gen_udp_SUITE.erl
+++ b/lib/kernel/test/gen_udp_SUITE.erl
@@ -448,8 +448,8 @@ open_fd(Config) when is_list(Config) ->
{ok,S1} = gen_udp:open(0),
{ok,P2} = inet:port(S1),
{ok,FD} = prim_inet:getfd(S1),
- {error,einval} = gen_udp:open(P2, [inet6, {fd,FD}]),
- {ok,S2} = gen_udp:open(P2, [{fd,FD}]),
+ {error,einval} = gen_udp:open(0, [inet6, {fd,FD}]),
+ {ok,S2} = gen_udp:open(0, [{fd,FD}]),
{ok,S3} = gen_udp:open(0),
{ok,P3} = inet:port(S3),
ok = gen_udp:send(S3, Addr, P2, Msg),