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

paulnovo-guest pushed a commit to branch master
in repository opensurgsim.

commit f36ccf416f1efd804fa0cedc5e9dbfdf20053a32
Author: Paul Novotny <p...@paulnovo.us>
Date:   Fri Oct 14 13:17:02 2016 -0400

    Fixes FTBFS (test failure) on arm64 (Closes: #838271)
---
 debian/patches/fix-rigid-representation-test.patch | 61 ++++++++++++++++++++++
 debian/patches/series                              |  3 +-
 2 files changed, 63 insertions(+), 1 deletion(-)

diff --git a/debian/patches/fix-rigid-representation-test.patch 
b/debian/patches/fix-rigid-representation-test.patch
new file mode 100644
index 0000000..afd7283
--- /dev/null
+++ b/debian/patches/fix-rigid-representation-test.patch
@@ -0,0 +1,61 @@
+Description: Fixes FTBFS (test failure) on arm64
+ This tweaks an epsilon values in the unit tests that were too strict and
+ caused failures on arm64.
+Author: Paul Novotny <p...@paulnovo.us>
+Bug-Debian: https://bugs.debian.org/838271
+Last-Update: 2016-10-14
+
+--- a/SurgSim/Physics/UnitTests/RigidRepresentationTest.cpp
++++ b/SurgSim/Physics/UnitTests/RigidRepresentationTest.cpp
+@@ -372,9 +372,9 @@
+               K = rigidBody->getExternalGeneralizedStiffness();
+               D = rigidBody->getExternalGeneralizedDamping();
+ 
+-              EXPECT_LE((F - Fnumeric).cwiseAbs().maxCoeff(), 2e-7);
+-              EXPECT_LE((K - Knumeric).cwiseAbs().maxCoeff(), 2e-7);
+-              EXPECT_LE((D - Dnumeric).cwiseAbs().maxCoeff(), 2e-7);
++              EXPECT_LE((F - Fnumeric).cwiseAbs().maxCoeff(), 5e-7);
++              EXPECT_LE((K - Knumeric).cwiseAbs().maxCoeff(), 5e-7);
++              EXPECT_LE((D - Dnumeric).cwiseAbs().maxCoeff(), 5e-7);
+       }
+ 
+       {
+@@ -400,9 +400,9 @@
+               K = rigidBody->getExternalGeneralizedStiffness();
+               D = rigidBody->getExternalGeneralizedDamping();
+ 
+-              EXPECT_LE((F - Fnumeric).cwiseAbs().maxCoeff(), 2e-7);
+-              EXPECT_LE((K - Knumeric).cwiseAbs().maxCoeff(), 2e-7);
+-              EXPECT_LE((D - Dnumeric).cwiseAbs().maxCoeff(), 2e-7);
++              EXPECT_LE((F - Fnumeric).cwiseAbs().maxCoeff(), 5e-7);
++              EXPECT_LE((K - Knumeric).cwiseAbs().maxCoeff(), 5e-7);
++              EXPECT_LE((D - Dnumeric).cwiseAbs().maxCoeff(), 5e-7);
+       }
+ 
+       {
+@@ -437,9 +437,9 @@
+               K = rigidBody->getExternalGeneralizedStiffness();
+               D = rigidBody->getExternalGeneralizedDamping();
+ 
+-              EXPECT_LE((F - Fnumeric).cwiseAbs().maxCoeff(), 2e-7);
+-              EXPECT_LE((K - Knumeric).cwiseAbs().maxCoeff(), 2.2e-7); // 
Epsilon set by trial and error
+-              EXPECT_LE((D - Dnumeric).cwiseAbs().maxCoeff(), 2e-7);
++              EXPECT_LE((F - Fnumeric).cwiseAbs().maxCoeff(), 5e-7);
++              EXPECT_LE((K - Knumeric).cwiseAbs().maxCoeff(), 5e-7); // 
Epsilon set by trial and error
++              EXPECT_LE((D - Dnumeric).cwiseAbs().maxCoeff(), 5e-7);
+       }
+ 
+       {
+@@ -475,9 +475,9 @@
+               K = rigidBody->getExternalGeneralizedStiffness();
+               D = rigidBody->getExternalGeneralizedDamping();
+ 
+-              EXPECT_LE((F - Fnumeric).cwiseAbs().maxCoeff(), 2e-7);
+-              EXPECT_LE((K - Knumeric).cwiseAbs().maxCoeff(), 2e-7);
+-              EXPECT_LE((D - Dnumeric).cwiseAbs().maxCoeff(), 2e-7);
++              EXPECT_LE((F - Fnumeric).cwiseAbs().maxCoeff(), 5e-7);
++              EXPECT_LE((K - Knumeric).cwiseAbs().maxCoeff(), 5e-7);
++              EXPECT_LE((D - Dnumeric).cwiseAbs().maxCoeff(), 5e-7);
+       }
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 3219c1c..2d56be5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
-fix-hurd-build.patch
 fix-build-with-eigen-3-3.patch
 disable-sensitive-tests.patch
+fix-hurd-build.patch
+fix-rigid-representation-test.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/debian-med/opensurgsim.git

_______________________________________________
debian-med-commit mailing list
debian-med-commit@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to