Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add line macros to gen_udp_SUITE:connect

  • Loading branch information...
commit 2f2d4c6b2ed4eff518936bc4d6a3fac170876171 1 parent e5f1c77
Patrik Nyblom authored

Showing 1 changed file with 9 additions and 9 deletions. Show diff stats Hide diff stats

  1. 18  lib/kernel/test/gen_udp_SUITE.erl
18  lib/kernel/test/gen_udp_SUITE.erl
@@ -415,15 +415,15 @@ connect(suite) ->
415 415
 connect(doc) ->
416 416
     ["Test that connect/3 has effect"];
417 417
 connect(Config) when is_list(Config) ->
418  
-    Addr = {127,0,0,1},
419  
-    {ok,S1} = gen_udp:open(0),
420  
-    {ok,P1} = inet:port(S1),
421  
-    {ok,S2} = gen_udp:open(0),
422  
-    ok = inet:setopts(S2, [{active,false}]),
423  
-    ok = gen_udp:close(S1),
424  
-    ok = gen_udp:connect(S2, Addr, P1),
425  
-    ok = gen_udp:send(S2, <<16#deadbeef:32>>),
426  
-    {error,econnrefused} = gen_udp:recv(S2, 0, 5),
  418
+    ?line Addr = {127,0,0,1},
  419
+    ?line {ok,S1} = gen_udp:open(0),
  420
+    ?line {ok,P1} = inet:port(S1),
  421
+    ?line {ok,S2} = gen_udp:open(0),
  422
+    ?line ok = inet:setopts(S2, [{active,false}]),
  423
+    ?line ok = gen_udp:close(S1),
  424
+    ?line ok = gen_udp:connect(S2, Addr, P1),
  425
+    ?line ok = gen_udp:send(S2, <<16#deadbeef:32>>),
  426
+    ?line {error,econnrefused} = gen_udp:recv(S2, 0, 5),
427 427
     ok.
428 428
 
429 429
 implicit_inet6(Config) when is_list(Config) ->

0 notes on commit 2f2d4c6

Please sign in to comment.
Something went wrong with that request. Please try again.