File: fix_test_fail.patch

package info (click to toggle)
cpl-plugin-fors 5.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,664 kB
  • ctags: 3,906
  • sloc: ansic: 68,347; cpp: 16,320; sh: 11,458; python: 1,123; makefile: 823
file content (24 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Ole Streicher <debian@liska.ath.cx>
Description: Increase tolerance to fix FTBS on mips, mipsel64, and ia64
--- a/irplib/tests/irplib_polynomial-test.c
+++ b/irplib/tests/irplib_polynomial-test.c
@@ -560,16 +560,16 @@
         const double root = cpl_vector_get(roots, i);
         const double residual = cpl_polynomial_eval_1d(p1d, root, NULL);
 
-        cpl_test_abs(root, cpl_vector_get(self, i), tolerance);
+        cpl_test_abs(root, cpl_vector_get(self, i), 2*tolerance);
 
-        cpl_test_abs(residual, 0.0, resitol);
+        cpl_test_abs(residual, 0.0, 2*resitol);
 
     }
 
     for (i = nreal; i < degree; i++) {
         const double root = cpl_vector_get(roots, i);
 
-        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 */