-
Notifications
You must be signed in to change notification settings - Fork 89
Update ThreadSafeBox Tests #459
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #459 +/- ##
==========================================
+ Coverage 85.25% 85.26% +0.01%
==========================================
Files 17 17
Lines 1397 1398 +1
Branches 132 132
==========================================
+ Hits 1191 1192 +1
Misses 120 120
Partials 86 86
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
christophfroehlich
left a comment
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.
Thanks.
On rolling we have a windows workflow in the CI, which fails now
D:\a\realtime_tools\realtime_tools\src\ros-controls\realtime_tools\realtime_tools\include\realtime_tools\mutex.hpp(21,1): error C1189: #error: "The mutex.hpp header is not supported on Windows platforms" [D:\a\realtime_tools\realtime_tools\build\realtime_tools\realtime_thread_safe_box_tests.vcxproj]
Can you please make the list of types depending on the platform?
christophfroehlich
left a comment
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.
Thanks!
fmauch
left a comment
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.
Looks fine to me. Please see my comment as a suggestion, but feel free to ignore it.
| // Priority mutexes are not available on Windows platforms | ||
| #ifdef _WIN32 | ||
| using TestTypes = ::testing::Types<std::mutex>; | ||
| #else | ||
| using TestTypes = ::testing::Types< | ||
| std::mutex, realtime_tools::prio_inherit_mutex, realtime_tools::prio_inherit_recursive_mutex>; | ||
| #endif |
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.
Could we move that together with the realtime_tools/mutex include?
Changes
realtime_thread_safe_box_tests(similar test is inhumble)