Skip to content

Commit

Permalink
add bullet ver check in test
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Nov 30, 2023
1 parent 15aab54 commit 2681ea0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/common_test/world_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
#include <gtest/gtest.h>

#include <LinearMath/btScalar.h>

#include <gz/common/Console.hh>
#include <gz/plugin/Loader.hh>

Expand Down Expand Up @@ -417,8 +419,12 @@ TEST_F(WorldNestedModelTest, WorldConstructNestedModel)
joint.SetParentName("world");
joint.SetChildName("invalid_link");
EXPECT_FALSE(worldModel->ConstructJoint(joint));
joint.SetChildName("parent_model::link1");
EXPECT_TRUE(worldModel->ConstructJoint(joint));
if (PhysicsEngineName(name) != "bullet-featherstone" ||
btGetVersion() >= 289)
{
joint.SetChildName("parent_model::link1");
EXPECT_TRUE(worldModel->ConstructJoint(joint));
}

gz::physics::ForwardStep::Input input;
gz::physics::ForwardStep::State state;
Expand Down

0 comments on commit 2681ea0

Please sign in to comment.