Skip to content

Commit

Permalink
Disable test on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Jun 16, 2022
1 parent 22d5272 commit 79dd5b3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/integration/boundingbox_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class BoundingBoxCameraSensorTest: public testing::Test,
// Create a BoundingBox Camera sensor from a SDF and gets a boxes message
public: void BoxesWithBuiltinSDF(const std::string &_renderEngine);

// Create a BoundingBox Camera 3D sensor from a SDF and gets a boxes message
public: void Boxes3DWithBuiltinSDF(const std::string &_renderEngine);
};

Expand Down Expand Up @@ -210,6 +211,14 @@ void BoundingBoxCameraSensorTest::BoxesWithBuiltinSDF(
EXPECT_EQ(width, 320u);
EXPECT_EQ(height, 240u);

// Skip unsupported engines
if (_renderEngine != "ogre2")
{
igndbg << "Engine '" << _renderEngine
<< "' doesn't support bounding box cameras" << std::endl;
return;
}

// Setup ign-rendering with an empty scene
auto *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down Expand Up @@ -367,6 +376,14 @@ void BoundingBoxCameraSensorTest::Boxes3DWithBuiltinSDF(
EXPECT_EQ(width, 320u);
EXPECT_EQ(height, 240u);

// Skip unsupported engines
if (_renderEngine != "ogre2")
{
igndbg << "Engine '" << _renderEngine
<< "' doesn't support bounding box cameras" << std::endl;
return;
}

// Setup ign-rendering with an empty scene
auto *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down

0 comments on commit 79dd5b3

Please sign in to comment.