-
Notifications
You must be signed in to change notification settings - Fork 3k
Utest: default copy constructor for failure_t doesn't behave as expected #2509
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
The default compiler(ARMCC) copy constructor for failure_t doesn't behave as expected and has unexpected side effects. This fix adds a custom copy constructor to fix this.
@0xc0170 This is the reproduction of the fix that was previously reviewed/merged/tested on the pre-5.1 mbed-os. Please give it a quick once over review and merge . |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 681 Test failed! |
/morph echo |
I recieved your comment! Here's what you wrote!
|
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 683 Test failed! |
So we have: Timeouts usually mean the devices didn't reset and get flashed correctly. Looking more closely at the failures, looks like the device has either crashed or not been flashed correctly. This is a test system issue, thus I'm happy this fix can be merged! |
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 720 All builds and test passed! |
Description
Fixes issue #2508.
The default compiler(ARMCC) copy constructor for failure_t doesn't behave as
expected and has unexpected side effects. This fix adds a custom copy constructor
to fix this.