Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable flaky tests on mac #405

Merged
merged 1 commit into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/integration/depth_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,10 @@ void DepthCameraTest::DepthCameraBoxes(
unsigned int ma = *mrgba >> 0 & 0xFF;
EXPECT_EQ(0u, mr);
EXPECT_EQ(0u, mg);
// Note: If it fails here, it may be this problem again:
#ifndef __APPLE__
// https://github.com/ignitionrobotics/ign-rendering/issues/332
EXPECT_GT(mb, 0u);
#endif

// Far left and right points should be red (background color)
float lc = pointCloudData[pcLeft + 3];
Expand Down Expand Up @@ -455,10 +456,11 @@ void DepthCameraTest::DepthCameraBoxes(
unsigned int a = *rgba >> 0 & 0xFF;
EXPECT_EQ(0u, r);
EXPECT_EQ(0u, g);
// Note: If it fails here, it may be this problem again:
#ifndef __APPLE__
// https://github.com/ignitionrobotics/ign-rendering/issues/332
EXPECT_GT(b, 0u);
EXPECT_EQ(255u, a);
#endif
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions test/integration/thermal_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ void ThermalCameraTest::ThermalCameraBoxes(
for (unsigned int j = 0; j < thermalCamera->ImageWidth(); ++j)
{
float temp = thermalData[step + j] * linearResolution;
#ifndef __APPLE__
// https://github.com/ignitionrobotics/ign-rendering/issues/253
EXPECT_NEAR(boxTemp, temp, boxTempRange);
#endif
}
}

Expand Down