[cpl-plugin-fors] 03/06: Increase tolerance to fix FTBS of irplib on mips and ia64
Ole Streicher
olebole-guest at moszumanska.debian.org
Sun Jan 12 15:15:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
olebole-guest pushed a commit to branch debian
in repository cpl-plugin-fors.
commit c7c12beb38bad01cceaaa421650e6dba74f2f8ff
Author: Ole Streicher <debian at liska.ath.cx>
Date: Thu Jan 9 22:59:17 2014 +0100
Increase tolerance to fix FTBS of irplib on mips and ia64
---
debian/patches/fix_test_fail.patch | 20 +++++++++-----------
debian/patches/series | 1 +
2 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/debian/patches/fix_test_fail.patch b/debian/patches/fix_test_fail.patch
index 52351cf..3c1c876 100644
--- a/debian/patches/fix_test_fail.patch
+++ b/debian/patches/fix_test_fail.patch
@@ -1,15 +1,13 @@
-Author: Lars Lundin <llundin at eso.org>
-Description: This committed change to irplib/tests/irplib_polynomial-test.c
- fixes the problem (Thanks to JTaylor for testing)
-Bug: PIPE-4326
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Increase tolerance to fix FTBS on mips and ia64
--- a/irplib/tests/irplib_polynomial-test.c
+++ b/irplib/tests/irplib_polynomial-test.c
-@@ -202,7 +202,7 @@
- DBL_EPSILON, 2.0*DBL_EPSILON);
+@@ -569,7 +569,7 @@
+ for (i = nreal; i < degree; i++) {
+ const double root = cpl_vector_get(roots, i);
- /* A more extreme case: Same with negative roots */
-- (void)cpl_vector_fill(xtrue, -2.0e-4 * FLT_EPSILON);
-+ (void)cpl_vector_fill(xtrue, -2.0e-3 * FLT_EPSILON);
- (void)cpl_vector_set(xtrue, 0, -1.0);
+- cpl_test_abs(root, cpl_vector_get(self, i), tolerance);
++ cpl_test_abs(root, cpl_vector_get(self, i), 2*tolerance);
+
+ /* FIXME: Verify residual as well */
- irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,
diff --git a/debian/patches/series b/debian/patches/series
index 9839386..3b7f63f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
libadd_cpl.patch
set_plugindir.patch
use-std-paths-for-cpl.patch
+fix_test_fail.patch
serial-tests
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cpl-plugin-fors.git
More information about the debian-science-commits
mailing list