-
Notifications
You must be signed in to change notification settings - Fork 398
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-#1613 Remove EXPECT_DEATH #2019
iox-#1613 Remove EXPECT_DEATH #2019
Conversation
@@ -62,7 +62,8 @@ MemPool::MemPool(const greater_or_equal<uint32_t, CHUNK_MEMORY_ALIGNMENT> chunkS | |||
else | |||
{ | |||
IOX_LOG(FATAL) << "Chunk size must be multiple of '" << CHUNK_MEMORY_ALIGNMENT << "'! Requested size is " | |||
<< chunkSize << " for " << numberOfChunks << " chunks!"; | |||
<< static_cast<uint32_t>(chunkSize) << " for " << static_cast<uint32_t>(numberOfChunks) |
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 just discovered that the logger currently does not invoke implicit conversion of greater_or_equal<T>
to T
correctly due to SFINEA on LogStream& operator<<(const T value)
for arithmetic typs. LogStream& operator<<(const bool value)
does not have SFINEA so greater_or_equal<uint32>
gets implicitly converted into bool. I guess we should replace the SFINEA implementation for arithmetic types with explicit methods.
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.
@elBoberido Can you please open an issue for this?
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.
@FerdinandSpitzschnueffler I added a task to #1755
Codecov Report
@@ Coverage Diff @@
## master #2019 +/- ##
==========================================
+ Coverage 74.17% 74.26% +0.08%
==========================================
Files 415 413 -2
Lines 16102 16055 -47
Branches 2254 2246 -8
==========================================
- Hits 11944 11923 -21
+ Misses 3435 3411 -24
+ Partials 723 721 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…L_FAILURE' where possible
5aae57e
to
4ea848e
Compare
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.
LGTM, thanks for the PR! If you create the follow-up issue for the SFINAE thingy we can merge this.
@mossmaurice I added a task to #1755 |
Pre-Review Checklist for the PR Author
iox-123-this-is-a-branch
)iox-#123 commit text
)task-list-completed
)iceoryx_hoofs
are added to./clang-tidy-diff-scans.txt
Notes for Reviewer
This PR replaces the last remaining
EXPECT_DEATH
withIOX_EXPECT_FATAL_FAILURE
where feasible. There are a few remaining occurrences which cannot be replaced, e.g. tests forPoshRuntime
which has a singleton. These tests now useGTEST_FLAG(death_test_style) = "threadsafe";
to prevent stucking threads.Checklist for the PR Reviewer
iceoryx_hoofs
have been added to./clang-tidy-diff-scans.txt
Post-review Checklist for the PR Author
References
EXPECT_DEATH
#1613