-
Notifications
You must be signed in to change notification settings - Fork 3k
Preparation for Callback changes #12035
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
@kjbracey-arm, thank you for your changes. |
1cca893
to
142173c
Compare
142173c
to
c6160d3
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.
Is it worth it? If it breaks our code in so many places?
@@ -695,12 +695,28 @@ utest::v1::status_t test_setup(const size_t number_of_cases) | |||
} | |||
|
|||
Case cases[] = { | |||
#ifdef DO_BIG_TEST |
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.
How is that decided?
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's set when callback/main.cpp
is included from callback_big/main.cpp
.
It's just a break-up of the test set into 3 images (callback/callback_big/callback_small). Breakup was done because so many template instantiations didn't fit into a tiny target.
Original split was done by copy-paste, but the 3 tests had started to diverge.
See commit 8b9f33a
There's kind of no alternative. Generic templates are totally fouled up by the ambiguity of |
c6160d3
to
142bb82
Compare
@kjbracey-arm also looks like this needs a rebase now .. |
@kjbracey-arm bump.... |
142bb82
to
4b2a0a7
Compare
Rebased |
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
One conflict now, please rebase |
Increasingly clever compilers can hit funny aliasing problems with object stores like mbed::Callback. Add access to the C++17 launder facility.
Avoids overload problems with Callback(nullptr) versus Callback(fnptr).
4b2a0a7
to
8b02c4e
Compare
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
This PR does not contain release version label after merging. |
Summary of changes
Code tweaks to support upcoming
Callback
changes.nullptr
or{}
instead ofNULL
or0
withCallback
.Callback
including<string.h>
.mstd::launder
.Callback
Greentea tests.Documentation
None
Pull request type
Test results
Reviewers