diff options
author | Patrik Nyblom <[email protected]> | 2010-09-07 10:22:16 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-09-13 10:51:52 +0200 |
commit | 2f2d4c6b2ed4eff518936bc4d6a3fac170876171 (patch) | |
tree | d3a4c6dafc649b44b0f111449b4e32d268bf6ab3 /lib | |
parent | e5f1c776df55a965f2f61d9881f17c8bf32e8621 (diff) | |
download | otp-2f2d4c6b2ed4eff518936bc4d6a3fac170876171.tar.gz otp-2f2d4c6b2ed4eff518936bc4d6a3fac170876171.tar.bz2 otp-2f2d4c6b2ed4eff518936bc4d6a3fac170876171.zip |
Add line macros to gen_udp_SUITE:connect
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kernel/test/gen_udp_SUITE.erl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kernel/test/gen_udp_SUITE.erl b/lib/kernel/test/gen_udp_SUITE.erl index 44dd8607b9..bbdfbd3cb0 100644 --- a/lib/kernel/test/gen_udp_SUITE.erl +++ b/lib/kernel/test/gen_udp_SUITE.erl @@ -415,15 +415,15 @@ connect(suite) -> connect(doc) -> ["Test that connect/3 has effect"]; connect(Config) when is_list(Config) -> - Addr = {127,0,0,1}, - {ok,S1} = gen_udp:open(0), - {ok,P1} = inet:port(S1), - {ok,S2} = gen_udp:open(0), - ok = inet:setopts(S2, [{active,false}]), - ok = gen_udp:close(S1), - ok = gen_udp:connect(S2, Addr, P1), - ok = gen_udp:send(S2, <<16#deadbeef:32>>), - {error,econnrefused} = gen_udp:recv(S2, 0, 5), + ?line Addr = {127,0,0,1}, + ?line {ok,S1} = gen_udp:open(0), + ?line {ok,P1} = inet:port(S1), + ?line {ok,S2} = gen_udp:open(0), + ?line ok = inet:setopts(S2, [{active,false}]), + ?line ok = gen_udp:close(S1), + ?line ok = gen_udp:connect(S2, Addr, P1), + ?line ok = gen_udp:send(S2, <<16#deadbeef:32>>), + ?line {error,econnrefused} = gen_udp:recv(S2, 0, 5), ok. implicit_inet6(Config) when is_list(Config) -> |