Description: skip tests which need internet access
Origin: vendor
Forwarded: not needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2015-06-09

--- a/t/30send.t
+++ b/t/30send.t
@@ -18,7 +18,10 @@
 						ReuseAddr=>1);
 ok( $sock4, "Create IPv4 multicast socket" );
 
+SKIP: {
+skip 'Tests require internet', 1 if $ENV{NO_NETWORK};
 is($sock4->send( 'Hello World!'), 12, "Sent 12 bytes on IPv4 socket." );
+}
 
 
 
@@ -30,4 +33,7 @@
 						ReuseAddr=>1);
 ok( $sock6, "Create IPv6 multicast socket" );
 
+SKIP: {
+skip 'Tests require internet', 1 if $ENV{NO_NETWORK};
 is($sock6->send( 'Hello World!'), 12, "Sent 12 bytes on IPv6 socket." );
+}
--- a/t/35mcastsend.t
+++ b/t/35mcastsend.t
@@ -26,7 +26,10 @@
 $sock4->mcast_dest( pack_sockaddr_in(2000,inet_pton(AF_INET, '239.255.30.29')) );
 ok( defined $sock4->mcast_dest(), "Packed IPv4 destination address and port" );
 
+SKIP: {
+skip 'Tests require internet', 1 if $ENV{NO_NETWORK};
 is($sock4->mcast_send( 'Hello World!' ), 12, "Sent 12 bytes on IPv4 socket." );
+}
 
 
 
@@ -43,4 +46,7 @@
 $sock6->mcast_dest( pack_sockaddr_in6(2000,inet_pton(AF_INET6, 'ff15::5042')) );
 ok( defined $sock6->mcast_dest(), "Packed IPv6 destination address and port" );
 
+SKIP: {
+skip 'Tests require internet', 1 if $ENV{NO_NETWORK};
 is($sock6->mcast_send( 'Hello World!' ), 12, "Sent 12 bytes on IPv6 socket." );
+}
