Skip to content

Commit

Permalink
Fix ARM issues with tests with nativeccd.
Browse files Browse the repository at this point in the history
Note: frameless_contact_hfield.xml doesn't work with libccd nor nativeccd on ARM as expected.
PiperOrigin-RevId: 698317464
Change-Id: I4c57e04639b9870b416c67d79a16a313c5276cf6
  • Loading branch information
kbayes authored and copybara-github committed Nov 20, 2024
1 parent 34c6f9b commit 867e8b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/engine/engine_collision_gjk_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ TEST_F(MjGjkTest, SmallBoxMesh) {
EXPECT_NEAR(dir[1], 0, kTolerance);
EXPECT_NEAR(dir[2], 1, kTolerance);

// position
EXPECT_NEAR(mju_abs(pos[0]), 0.08333333, kTolerance); // -pos[0] on ARM
EXPECT_NEAR(pos[1], 0, kTolerance);
EXPECT_NEAR(pos[2], 0, kTolerance);

mj_deleteData(data);
mj_deleteModel(model);
}
Expand Down
1 change: 1 addition & 0 deletions test/xml/xml_native_writer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,7 @@ TEST_F(XMLWriterTest, WriteReadCompare) {
absl::StrContains(p.path().string(), "gmsh_") ||
absl::StrContains(p.path().string(), "shark_") ||
absl::StrContains(p.path().string(), "cow") ||
absl::StrContains(p.path().string(), "frameless_contact_hfield") ||
absl::StrContains(p.path().string(), "spheremesh")) {
continue;
}
Expand Down

0 comments on commit 867e8b8

Please sign in to comment.