[eclib] 01/04: Add patch to make tests pass

Julien Puydt julien.puydt at laposte.net
Sat Jun 25 08:22:41 UTC 2016


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

jpuydt-guest pushed a commit to branch master
in repository eclib.

commit 321ef1f100b26c54c8a7b980ec8bc0cdd4869b04
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sat Jun 25 09:41:56 2016 +0200

    Add patch to make tests pass
---
 debian/patches/egr_bound_small_too_zero.patch | 16 ++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/egr_bound_small_too_zero.patch b/debian/patches/egr_bound_small_too_zero.patch
new file mode 100644
index 0000000..898e87a
--- /dev/null
+++ b/debian/patches/egr_bound_small_too_zero.patch
@@ -0,0 +1,16 @@
+Author: Julien Puydt
+Description: Set egr_bound to zero if it's small so tests pass
+Forwarded: yes
+
+--- a/tests/thtconst.cc
++++ b/tests/thtconst.cc
+@@ -76,6 +76,9 @@
+       double cps = cps_bound(CD);
+       cout << "CPS bound = " << cps << "\n";
+       double egr_bound = egr_height_constant(CD);
++      // numerical noise makes tests fail
++      if (abs(egr_bound) < 1e-100)
++	egr_bound = 0;
+       cout << "egr bound = " << egr_bound << "\n";
+       bigint k;
+       Curvedata CD2=opt_x_shift(CD,k);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..627b9f4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+egr_bound_small_too_zero.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/eclib.git



More information about the debian-science-commits mailing list