-
Notifications
You must be signed in to change notification settings - Fork 402
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
Iox #805 enhance posix call #807
Iox #805 enhance posix call #807
Conversation
Signed-off-by: Mathias Kraus <[email protected]>
… tests Signed-off-by: Mathias Kraus <[email protected]>
…dErrnos Signed-off-by: Mathias Kraus <[email protected]>
…ntainValue Signed-off-by: Mathias Kraus <[email protected]>
…algorithm::doesContainValue Signed-off-by: Mathias Kraus <[email protected]>
…n returns the errno value instead of setting it Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
…iate Signed-off-by: Mathias Kraus <[email protected]>
@@ -72,7 +72,7 @@ if(BUILD_TEST) | |||
WORKING_DIRECTORY "${SOURCE_DIR}" | |||
RESULT_VARIABLE result) | |||
if(result) | |||
message(FATAL_ERROR "CMake step [patch] for googletest failed: ${result}") | |||
message(WARNING "CMake step [patch] for googletest failed: ${result}! Build of gtest might fail") |
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.
had to do this since I had problems running cmake mutliple times
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.
Mmmhhh thats not so nice. Is it possible to run this command only once when we clone the repo and when its already present we skip it?
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 could not find a solution for this but in the end it doesn't matter. If this doesn't stop the build the -Werror
does
iceoryx_hoofs/include/iceoryx_hoofs/posix_wrapper/posix_call.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathias Kraus <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #807 +/- ##
==========================================
+ Coverage 74.40% 74.49% +0.08%
==========================================
Files 322 323 +1
Lines 11532 11521 -11
Branches 1956 1950 -6
==========================================
+ Hits 8580 8582 +2
+ Misses 2192 2180 -12
+ Partials 760 759 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Mathias Kraus <[email protected]>
061c51f
to
04ceec2
Compare
Signed-off-by: Mathias Kraus <[email protected]>
04ceec2
to
3eddd5f
Compare
iceoryx_hoofs/include/iceoryx_hoofs/internal/posix_wrapper/posix_call.inl
Show resolved
Hide resolved
iceoryx_hoofs/include/iceoryx_hoofs/posix_wrapper/posix_call.hpp
Outdated
Show resolved
Hide resolved
/// @param[in] remainingValueListEntries are the remaining variadic arguments of ValueList | ||
template <typename T, typename... ValueList> | ||
inline constexpr bool | ||
doesContainValue(const T value, const T firstValueListEntry, const ValueList... remainingValueListEntries) noexcept; |
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 have a feeling of déjà vu. Didn't we already implement this helper function? I couldn't find it 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 have the same feeling but maybe I am mixing it up with doesContainType
which we use to verify if the cxx::variant
contains a certain type.
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 couldn't find something similar in helplets or algorithm. Maybe it's buried in some class
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.
The API looks even more cleaner now. Thank you.
@@ -72,7 +72,7 @@ if(BUILD_TEST) | |||
WORKING_DIRECTORY "${SOURCE_DIR}" | |||
RESULT_VARIABLE result) | |||
if(result) | |||
message(FATAL_ERROR "CMake step [patch] for googletest failed: ${result}") | |||
message(WARNING "CMake step [patch] for googletest failed: ${result}! Build of gtest might fail") |
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.
Mmmhhh thats not so nice. Is it possible to run this command only once when we clone the repo and when its already present we skip it?
/// @param[in] remainingValueListEntries are the remaining variadic arguments of ValueList | ||
template <typename T, typename... ValueList> | ||
inline constexpr bool | ||
doesContainValue(const T value, const T firstValueListEntry, const ValueList... remainingValueListEntries) noexcept; |
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 have the same feeling but maybe I am mixing it up with doesContainType
which we use to verify if the cxx::variant
contains a certain type.
iceoryx_hoofs/include/iceoryx_hoofs/posix_wrapper/posix_call.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathias Kraus <[email protected]>
6f69fb7
to
41a59a1
Compare
Signed-off-by: Mathias Kraus <[email protected]>
…ssErrorMessagesForErrnos Signed-off-by: Mathias Kraus <[email protected]>
…or message suppresion Signed-off-by: Mathias Kraus <[email protected]>
8f020ea
to
28fb7a0
Compare
Signed-off-by: Mathias Kraus <[email protected]>
50d1890
to
f445b3b
Compare
iceoryx_hoofs/include/iceoryx_hoofs/internal/posix_wrapper/posix_call.inl
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathias Kraus <[email protected]>
f8956e1
Pre-Review Checklist for the PR Author
iox-#123-this-is-a-branch
)iox-#123 commit text
)git commit -s
)task-list-completed
)Notes for Reviewer
This PR refactors the posixCall to handle a common case were errnos are ignored just to suppress error logging.
Additionaly, the handling of returning the errno value instead of setting the errno is now handled explicit.
Checklist for the PR Reviewer
Post-review Checklist for the PR Author
References