summaryrefslogtreecommitdiff
path: root/sccomp/qa/unit/SwarmSolverTest.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-24 15:30:48 +0100
committerTomaž Vajngerl <quikee@gmail.com>2017-11-25 04:20:18 +0100
commit1fa761af825641da5c87f80c2a17135f92418960 (patch)
tree80941394b3b6b044d73797e25bc4de63670fd757 /sccomp/qa/unit/SwarmSolverTest.cxx
parentff54dc5e63169aff0c4e7ef1a062468ee3124c77 (diff)
Ridiculously large delta for SwarmSolverTest::testUnconstrained for now
At least the Jenkins lo_ubsan build sporadically keeps failing CppunitTest_sccomp_swarmsolvertest due to rather widely off values here (3.00064356398118 in <https://ci.libreoffice.org/job/lo_ubsan/736/console> and 2.8639022684852 in <https://ci.libreoffice.org/job/lo_ubsan/738/console>), so suggestion by Tomaž Vajngerl was: "Let's adapt the delta for now. Generally anything close to 3 should be acceptable as the algorithm greatly depends on random values." Change-Id: Id8f8657e521381decb1c719a1cffdf959ae74ef4 Reviewed-on: https://gerrit.libreoffice.org/45231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sccomp/qa/unit/SwarmSolverTest.cxx')
-rw-r--r--sccomp/qa/unit/SwarmSolverTest.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sccomp/qa/unit/SwarmSolverTest.cxx b/sccomp/qa/unit/SwarmSolverTest.cxx
index 918cd9103021..0be632dfb174 100644
--- a/sccomp/qa/unit/SwarmSolverTest.cxx
+++ b/sccomp/qa/unit/SwarmSolverTest.cxx
@@ -103,7 +103,7 @@ void SwarmSolverTest::testUnconstrained()
uno::Sequence<double> aSolution = xSolver->getSolution();
CPPUNIT_ASSERT_EQUAL(aSolution.getLength(), aVariables.getLength());
- CPPUNIT_ASSERT_DOUBLES_EQUAL(3.0, aSolution[0], 1E-5);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(3.0, aSolution[0], .2);
}
void SwarmSolverTest::testVariableBounded()