[libthread-pool-perl] 01/02: TODO out an undeterministically failing test

Niko Tyni ntyni at moszumanska.debian.org
Wed Dec 23 09:48:58 UTC 2015


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

ntyni pushed a commit to branch master
in repository libthread-pool-perl.

commit 2a38ee58b0df4c4f037d7d5ffc8713f646ab06f4
Author: Niko Tyni <ntyni at debian.org>
Date:   Mon Dec 21 23:54:37 2015 +0200

    TODO out an undeterministically failing test
    
    Closes: #799718
---
 ...O-out-an-undeterministically-failing-test.patch | 31 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/0001-TODO-out-an-undeterministically-failing-test.patch b/debian/patches/0001-TODO-out-an-undeterministically-failing-test.patch
new file mode 100644
index 0000000..def4a3c
--- /dev/null
+++ b/debian/patches/0001-TODO-out-an-undeterministically-failing-test.patch
@@ -0,0 +1,31 @@
+From 67291e1bb5674232a6e39e968f435dacd00fecf9 Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Mon, 21 Dec 2015 23:52:39 +0200
+Subject: [PATCH] TODO out an undeterministically failing test
+
+On a loaded machine, the number of todo jobs seems to vary up to
+at least 5.
+
+Bug-Debian: https://bugs.debian.org/799718
+---
+ t/Pool01.t | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/t/Pool01.t b/t/Pool01.t
+index ae534d4..aab1cde 100644
+--- a/t/Pool01.t
++++ b/t/Pool01.t
+@@ -74,7 +74,10 @@ my $removed = $pool->removed;
+ ok( ($removed >= 0 and $removed <= 5),	'check number of removed, #1' );
+ 
+ $todo = $pool->todo;
++TODO: {
++    local $::TODO = "can vary up to at least 5 on loaded systems";
+ ok( ($todo >= 0 and $todo <= 3),	'check # jobs todo, #2' );
++}
+ 
+ my @result = $pool->result_dontwait( $jobid1 );
+ ok( (!@result or ("@result" eq 'i h g')), 'check result_dontwait' );
+-- 
+2.6.4
+
diff --git a/debian/patches/series b/debian/patches/series
index 5622f22..9b3fe0a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-pod-spelling.patch
+0001-TODO-out-an-undeterministically-failing-test.patch

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



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