[Pkg-sympa-commits] [libmime-lite-html-perl] 07/08: Add a patch to fix random FTBFS in test suite with the approximative size factor which can be too small in some cases (#844911)

Emmanuel Bouthenot kolter at moszumanska.debian.org
Fri Nov 25 09:38:31 UTC 2016


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

kolter pushed a commit to branch unstable
in repository libmime-lite-html-perl.

commit ec2cb72909b770b6b0af04035d905ab9728ba11f
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Fri Nov 25 10:10:34 2016 +0100

    Add a patch to fix random FTBFS in test suite with the approximative size factor which can be too small in some cases (#844911)
---
 debian/patches/fix_random_ftbfs_testsuite | 37 +++++++++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 38 insertions(+)

diff --git a/debian/patches/fix_random_ftbfs_testsuite b/debian/patches/fix_random_ftbfs_testsuite
new file mode 100644
index 0000000..c1283ee
--- /dev/null
+++ b/debian/patches/fix_random_ftbfs_testsuite
@@ -0,0 +1,37 @@
+Description: Fix random FTBFS in test suite with the approximative size factor
+    which can be too small in some cases
+Author: Emmanuel Bouthenot <kolter at debian.org>
+Bug-Debian: https://bugs.debian.org/844911
+Forwarded: no
+Last-Update: 2016-11-24
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/t/50generic.t
++++ b/t/50generic.t
+@@ -51,7 +51,7 @@
+       close(PROD);
+     my $r = `diff $ref $f.created_by_test`;
+       cmp_ok($mailHTML->size, ">", (stat($ref))[7], "Same size");
+-      cmp_ok($mailHTML->size*0.945, "<", (stat($ref))[7], "Same size");
++      cmp_ok($mailHTML->size*0.943, "<", (stat($ref))[7], "Same size");
+       is($r, "", $ref);
+       unlink("$f.created_by_test");
+     }
+@@ -92,7 +92,7 @@
+       close(PROD);
+     my $r = `diff $ref $f.created_by_test`;
+       cmp_ok($mailHTML->size, ">", (stat($ref))[7], "Same size");
+-      cmp_ok($mailHTML->size*0.945, "<", (stat($ref))[7], "Same size");
++      cmp_ok($mailHTML->size*0.943, "<", (stat($ref))[7], "Same size");
+       is($r, "", $ref);
+       unlink("$f.created_by_test");
+     }
+@@ -134,7 +134,7 @@
+       close(PROD);
+     my $r = `diff $ref $f.created_by_test`;
+       cmp_ok($mailHTML->size, ">", (stat($ref))[7], "Same size");
+-      cmp_ok($mailHTML->size*0.945, "<", (stat($ref))[7], "Same size");
++      cmp_ok($mailHTML->size*0.943, "<", (stat($ref))[7], "Same size");
+       is($r, "", $ref);
+       unlink("$f.created_by_test");
+     }
diff --git a/debian/patches/series b/debian/patches/series
index 9539476..d91a9b2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fix_perl_hash_seed_issues
 fix_typos_in_manpage
+fix_random_ftbfs_testsuite

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sympa/libmime-lite-html-perl.git



More information about the Pkg-sympa-commits mailing list