-
Notifications
You must be signed in to change notification settings - Fork 342
Disable standalone_gtest_setup example test on mac #2892
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
Conversation
Signed-off-by: Ian Chen <ichen@openrobotics.org>
|
|
||
| include(GoogleTest) | ||
| gtest_discover_tests(${TEST_TARGET}) | ||
| if (APPLE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think this issue will occur on other platforms with cmake 4? If so, I would check the cmake version instead of APPLE
I'm not sure though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some tests:
- Ubuntu + cmake 4.0.1: built fine
- Mac + cmake 3.31.7: same error
- Mac + cmake 3.31.6: same error
hmm maybe something else has changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird
I've tried disabling ccache and that seems to fix it for me?
testing without ccache using gazebo-tooling/release-tools@b7cd4e3:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that didn't help
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now I can't reproduce the failure on my personal machine at all, though it still fails in CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm I can still reproduce it. I don't have ccache setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why the test is failing, but let's go ahead and merge this to fix CI
let's leave the issue open though
🦟 Bug fix
Fixes #2889
Summary
The test was also failing locally on my mac but with a slightly different error msg from the output in #2889:
Setting
DISCOVERY_MODEtoPRE_TESTingtest_discover_testsmakes gtest delay test discovery until before test execution. By default it's done at build time withPOST_BUILD.From cmake doc on
PRE_TEST:I was able to build and run the test locally with these changes.
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-bymessages.