ports/devel/p5-Git-PurePerl/files/patch-t_protocol__gpp.t
Wen Heping de9070e5ff - Add missing DEPENDS
- Add LICENSE
- Add a FreeBSD patch to provide a relevant message when running
perl built-in tests from within a poudriere jail, which does not
have connection to the Internet.

PR:		194873
Submitted by:	svysh.fbsd@gmail.com
2014-12-31 14:15:55 +00:00

16 lines
355 B
Perl

--- t/protocol_gpp.t.orig 2013-08-26 11:24:05 UTC
+++ t/protocol_gpp.t
@@ -6,6 +6,13 @@ use IO::File;
use Path::Class;
use Test::More;
+my $socket = IO::Socket::INET->new("www.google.com:80");
+if ($socket) {
+ close ($socket);
+} else {
+ plan skip_all => 'No Internet connection?';
+}
+
my $directory = 'test-protocol';
dir($directory)->rmtree;