[libio-async-perl] 07/09: Delete subsecond.patch, was from new upstream version

Florian Schlichting fsfs at alioth.debian.org
Fri Sep 20 18:09:22 UTC 2013


This is an automated email from the git hooks/post-receive script.

fsfs pushed a commit to branch master
in repository libio-async-perl.

commit 5280173c773cca2cf237ee21187b47d45121da29
Author: Florian Schlichting <fsfs at debian.org>
Date:   Fri Sep 20 20:03:24 2013 +0200

    Delete subsecond.patch, was from new upstream version
---
 debian/patches/series          |    1 -
 debian/patches/subsecond.patch |   74 ----------------------------------------
 2 files changed, 75 deletions(-)

diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 409bbeb..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-subsecond.patch
diff --git a/debian/patches/subsecond.patch b/debian/patches/subsecond.patch
deleted file mode 100644
index ab600c1..0000000
--- a/debian/patches/subsecond.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-Origin: upstream, http://bazaar.leonerd.org.uk/perl/IO-Async/, r1044
-Bug: https://rt.cpan.org/Ticket/Display.html?id=78892
-Bug-Debian: http://bugs.debian.org/680790
- http://bugs.debian.org/687403
-Reviewed-by: gregor herrmann <gregoa at debian.org>
-Applied-Upstream: yes, in bzr and since 0.51_001, except for s/1/0/ in "use constant ..."
-
-revno 1044
-From: Paul "LeoNerd" Evans <leonerd at leonerd.org.uk>
-Date: Tue 2012-06-26 23:58:58 +0100
-Branch-Nick: IO-Async
-Subject: Allow Loops to declare for unit-test purposes that they can't
- handle subsecond timers accurately, so skip the counter tests
-
----
- lib/IO/Async/Loop.pm      |    4 ++++
- lib/IO/Async/LoopTests.pm |   32 ++++++++++++++++++--------------
- 2 files changed, 22 insertions(+), 14 deletions(-)
-
---- a/lib/IO/Async/Loop.pm
-+++ b/lib/IO/Async/Loop.pm
-@@ -16,6 +16,10 @@
- # Base value but some classes might override
- use constant _CAN_ON_HANGUP => 0;
- 
-+# Some Loop implementations do not accurately handle sub-second timers.
-+# This only matters for unit tests
-+use constant _CAN_SUBSECOND_ACCURATELY => 0;
-+
- use Carp;
- 
- use IO::Socket (); # empty import
---- a/lib/IO/Async/LoopTests.pm
-+++ b/lib/IO/Async/LoopTests.pm
-@@ -464,21 +464,25 @@
-       }
-    } 1.5, 2.5, 'loop_once(5) while waiting for timer';
- 
--   # Check that short delays are achievable in one ->loop_once call
--   foreach my $delay ( 0.001, 0.01, 0.1 ) {
--      my $done;
--      my $count = 0;
--      my $start = time;
--
--      $loop->enqueue_timer( delay => $delay, code => sub { $done++ } );
--
--      while( !$done ) {
--         $loop->loop_once( 1 );
--         $count++;
--         last if time - $start > 5; # bailout
--      }
-+   SKIP: {
-+      skip "Unable to handle sub-second timers accurately", 3 unless $loop->_CAN_SUBSECOND_ACCURATELY;
-+
-+      # Check that short delays are achievable in one ->loop_once call
-+      foreach my $delay ( 0.001, 0.01, 0.1 ) {
-+         my $done;
-+         my $count = 0;
-+         my $start = time;
-+
-+         $loop->enqueue_timer( delay => $delay, code => sub { $done++ } );
- 
--      is( $count, 1, "One ->loop_once(1) sufficient for a single $delay second timer" );
-+         while( !$done ) {
-+            $loop->loop_once( 1 );
-+            $count++;
-+            last if time - $start > 5; # bailout
-+         }
-+
-+         is( $count, 1, "One ->loop_once(1) sufficient for a single $delay second timer" );
-+      }
-    }
- 
-    $cancelled_fired = 0;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libio-async-perl.git



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