File: 0006-Reduce-test-result-accuracy-to-fix-i386.patch

package info (click to toggle)
dart 6.12.1%2Bdfsg4-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 57,000 kB
  • sloc: cpp: 269,461; python: 3,911; xml: 1,273; sh: 404; makefile: 30
file content (21 lines) | stat: -rw-r--r-- 846 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Jochen Sprickerhof <jspricke@debian.org>
Date: Thu, 26 Nov 2020 08:27:45 +0100
Subject: Reduce test result accuracy to fix i386

---
 unittests/regression/test_Issue1445.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unittests/regression/test_Issue1445.cpp b/unittests/regression/test_Issue1445.cpp
index 3f8d612..db0b350 100644
--- a/unittests/regression/test_Issue1445.cpp
+++ b/unittests/regression/test_Issue1445.cpp
@@ -162,7 +162,7 @@ TEST(Issue1445, Collision)
     world->step();
 
   // Expect both bodies to remain in contact with the ground with zero velocity.
-  EXPECT_NEAR(0.0, model1Body->getLinearVelocity().z(), 1e-3);
+  EXPECT_NEAR(0.0, model1Body->getLinearVelocity().z(), 1e-2);
   EXPECT_NEAR(0.0, model2Body->getLinearVelocity().z(), 1e-3);
 
   auto* groundBody = ground->getRootBodyNode();