r74989 - in /branches/upstream/libtest-tcp-perl/current: ./ inc/Module/ inc/Module/Install/ inc/Test/ lib/Test/

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Wed Jun 1 11:41:42 UTC 2011


Author: periapt-guest
Date: Wed Jun  1 11:41:10 2011
New Revision: 74989

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=74989
Log:
[svn-upgrade] new version libtest-tcp-perl (1.13)

Removed:
    branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Include.pm
    branches/upstream/libtest-tcp-perl/current/inc/Test/
Modified:
    branches/upstream/libtest-tcp-perl/current/.gitignore
    branches/upstream/libtest-tcp-perl/current/Changes
    branches/upstream/libtest-tcp-perl/current/MANIFEST
    branches/upstream/libtest-tcp-perl/current/META.yml
    branches/upstream/libtest-tcp-perl/current/Makefile.PL
    branches/upstream/libtest-tcp-perl/current/inc/Module/Install.pm
    branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Base.pm
    branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Can.pm
    branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Fetch.pm
    branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Makefile.pm
    branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Metadata.pm
    branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Win32.pm
    branches/upstream/libtest-tcp-perl/current/inc/Module/Install/WriteAll.pm
    branches/upstream/libtest-tcp-perl/current/lib/Test/TCP.pm

Modified: branches/upstream/libtest-tcp-perl/current/.gitignore
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/.gitignore?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/.gitignore (original)
+++ branches/upstream/libtest-tcp-perl/current/.gitignore Wed Jun  1 11:41:10 2011
@@ -7,3 +7,4 @@
 ^\.git/
 MANIFEST.bak
 *.old
+MYMETA.yml

Modified: branches/upstream/libtest-tcp-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/Changes?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/Changes (original)
+++ branches/upstream/libtest-tcp-perl/current/Changes Wed Jun  1 11:41:10 2011
@@ -1,4 +1,11 @@
 Revision history for Perl extension Test::TCP
+
+1.13
+
+    - RT#67292: Tests are blocking in Windows 7.
+      https://rt.cpan.org/Ticket/Display.html?id=67292
+    - change port number range from 10000 .. 11000 to 50000 .. 60000 to respect IANA.
+      https://rt.cpan.org/Ticket/Display.html?id=64012
 
 1.12
 

Modified: branches/upstream/libtest-tcp-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/MANIFEST?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/MANIFEST (original)
+++ branches/upstream/libtest-tcp-perl/current/MANIFEST Wed Jun  1 11:41:10 2011
@@ -5,12 +5,10 @@
 inc/Module/Install/Base.pm
 inc/Module/Install/Can.pm
 inc/Module/Install/Fetch.pm
-inc/Module/Install/Include.pm
 inc/Module/Install/Makefile.pm
 inc/Module/Install/Metadata.pm
 inc/Module/Install/Win32.pm
 inc/Module/Install/WriteAll.pm
-inc/Test/More.pm
 lib/Test/TCP.pm
 Makefile.PL
 MANIFEST			This list of files

Modified: branches/upstream/libtest-tcp-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/META.yml?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/META.yml (original)
+++ branches/upstream/libtest-tcp-perl/current/META.yml Wed Jun  1 11:41:10 2011
@@ -4,10 +4,11 @@
   - 'Tokuhiro Matsuno <tokuhirom at gmail.com>'
 build_requires:
   ExtUtils::MakeMaker: 6.42
+  Test::More: 0.98
 configure_requires:
   ExtUtils::MakeMaker: 6.42
 distribution_type: module
-generated_by: 'Module::Install version 1.00'
+generated_by: 'Module::Install version 1.01'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,4 +25,4 @@
   perl: 5.8.0
 resources:
   license: http://dev.perl.org/licenses/
-version: 1.12
+version: 1.13

Modified: branches/upstream/libtest-tcp-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/Makefile.PL?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/Makefile.PL (original)
+++ branches/upstream/libtest-tcp-perl/current/Makefile.PL Wed Jun  1 11:41:10 2011
@@ -10,6 +10,5 @@
 tests 't/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t';
 test_requires 'Test::More' => 0.98;
 author_tests 'xt';
-auto_include;
 WriteAll;
 

Modified: branches/upstream/libtest-tcp-perl/current/inc/Module/Install.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/inc/Module/Install.pm?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/inc/Module/Install.pm (original)
+++ branches/upstream/libtest-tcp-perl/current/inc/Module/Install.pm Wed Jun  1 11:41:10 2011
@@ -31,7 +31,7 @@
 	# This is not enforced yet, but will be some time in the next few
 	# releases once we can make sure it won't clash with custom
 	# Module::Install extensions.
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 
 	# Storage for the pseudo-singleton
 	$MAIN    = undef;
@@ -467,4 +467,4 @@
 
 1;
 
-# Copyright 2008 - 2010 Adam Kennedy.
+# Copyright 2008 - 2011 Adam Kennedy.

Modified: branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Base.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Base.pm?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Base.pm (original)
+++ branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Base.pm Wed Jun  1 11:41:10 2011
@@ -4,7 +4,7 @@
 use strict 'vars';
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 }
 
 # Suspend handler for "redefined" warnings

Modified: branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Can.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Can.pm?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Can.pm (original)
+++ branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Can.pm Wed Jun  1 11:41:10 2011
@@ -9,7 +9,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Fetch.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Fetch.pm?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Fetch.pm (original)
+++ branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Fetch.pm Wed Jun  1 11:41:10 2011
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Makefile.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Makefile.pm?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Makefile.pm (original)
+++ branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Makefile.pm Wed Jun  1 11:41:10 2011
@@ -8,7 +8,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Metadata.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Metadata.pm?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Metadata.pm (original)
+++ branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Metadata.pm Wed Jun  1 11:41:10 2011
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
@@ -515,6 +515,7 @@
 		'GNU Free Documentation license'     => 'unrestricted', 1,
 		'GNU Affero General Public License'  => 'open_source',  1,
 		'(?:Free)?BSD license'               => 'bsd',          1,
+		'Artistic license 2\.0'              => 'artistic_2',   1,
 		'Artistic license'                   => 'artistic',     1,
 		'Apache (?:Software )?license'       => 'apache',       1,
 		'GPL'                                => 'gpl',          1,
@@ -550,9 +551,9 @@
 
 sub _extract_bugtracker {
 	my @links   = $_[0] =~ m#L<(
-	 \Qhttp://rt.cpan.org/\E[^>]+|
-	 \Qhttp://github.com/\E[\w_]+/[\w_]+/issues|
-	 \Qhttp://code.google.com/p/\E[\w_\-]+/issues/list
+	 https?\Q://rt.cpan.org/\E[^>]+|
+	 https?\Q://github.com/\E[\w_]+/[\w_]+/issues|
+	 https?\Q://code.google.com/p/\E[\w_\-]+/issues/list
 	 )>#gx;
 	my %links;
 	@links{@links}=();

Modified: branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Win32.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Win32.pm?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Win32.pm (original)
+++ branches/upstream/libtest-tcp-perl/current/inc/Module/Install/Win32.pm Wed Jun  1 11:41:10 2011
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: branches/upstream/libtest-tcp-perl/current/inc/Module/Install/WriteAll.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/inc/Module/Install/WriteAll.pm?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/inc/Module/Install/WriteAll.pm (original)
+++ branches/upstream/libtest-tcp-perl/current/inc/Module/Install/WriteAll.pm Wed Jun  1 11:41:10 2011
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = qw{Module::Install::Base};
 	$ISCORE  = 1;
 }

Modified: branches/upstream/libtest-tcp-perl/current/lib/Test/TCP.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-tcp-perl/current/lib/Test/TCP.pm?rev=74989&op=diff
==============================================================================
--- branches/upstream/libtest-tcp-perl/current/lib/Test/TCP.pm (original)
+++ branches/upstream/libtest-tcp-perl/current/lib/Test/TCP.pm Wed Jun  1 11:41:10 2011
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 use 5.00800;
-our $VERSION = '1.12';
+our $VERSION = '1.13';
 use base qw/Exporter/;
 use IO::Socket::INET;
 use Test::SharedFork 0.12;
@@ -17,18 +17,20 @@
 # process does not die when received SIGTERM, on win32.
 my $TERMSIG = $^O eq 'MSWin32' ? 'KILL' : 'TERM';
 
+# get a empty port on 49152 .. 65535
+# http://www.iana.org/assignments/port-numbers
 sub empty_port {
     my $port = do {
         if (@_) {
             my $p = $_[0];
-            $p = 19000 unless $p =~ /^[0-9]+$/ && $p < 19000;
+            $p = 49152 unless $p =~ /^[0-9]+$/ && $p < 49152;
             $p;
         } else {
-            10000 + int(rand()*1000);
+            50000 + int(rand()*1000);
         }
     };
 
-    while ( $port++ < 20000 ) {
+    while ( $port++ < 60000 ) {
         next if _check_port($port);
         my $sock = IO::Socket::INET->new(
             Listen    => 5,
@@ -130,7 +132,22 @@
     return unless defined $self->{pid};
     return unless $self->{_my_pid} == $$;
 
-    kill $TERMSIG => $self->{pid};
+    # This is a workaround for win32 fork emulation's bug.
+    #
+    # kill is inherently unsafe for pseudo-processes in Windows
+    # and the process calling kill(9, $pid) may be destabilized
+    # The call to Sleep will decrease the frequency of this problems
+    #
+    # SEE ALSO:
+    #   http://www.gossamer-threads.com/lists/perl/porters/261805
+    #   https://rt.cpan.org/Ticket/Display.html?id=67292
+    Win32::Sleep(0) if $^O eq "MSWin32"; # will relinquish the remainder of its time slice
+
+        kill $TERMSIG => $self->{pid};
+
+    Win32::Sleep(0) if $^O eq "MSWin32"; # will relinquish the remainder of its time slice
+
+
     local $?; # waitpid modifies original $?.
     LOOP: while (1) {
         my $kid = waitpid( $self->{pid}, 0 );




More information about the Pkg-perl-cvs-commits mailing list