Skip to content

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

Merged
merged 1 commit into from
Aug 26, 2016
Merged

Utest: default copy constructor for failure_t doesn't behave as expected #2509

merged 1 commit into from
Aug 26, 2016

Conversation

adbridge
Copy link
Contributor

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.

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.
@adbridge
Copy link
Contributor Author

@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 .

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 22, 2016

/morph test

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 681

Test failed!

@sg-
Copy link
Contributor

sg- commented Aug 23, 2016

@bridadan

@bridadan
Copy link
Contributor

/morph echo

@mbed-bot
Copy link

I recieved your comment! Here's what you wrote!

/morph echo

@bridadan
Copy link
Contributor

/morph test

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 683

Test failed!

@adbridge
Copy link
Contributor Author

adbridge commented Aug 23, 2016

So we have:
K64F-IAR | K64F | tests-mbedmicro-rtos-mbed-basic | TIMEOUT | 46.68 |
KL46Z-IAR | KL46Z | features-frameworks-utest-tests-unit_tests-test_setup_failure | TIMEOUT | 57.42 |
NRF51_DK-ARM | NRF51_DK | features-frameworks-utest-tests-unit_tests-test_assertion_failure_test_setup | TIMEOUT | 76.42 | shell |

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!

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 26, 2016

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 720

All builds and test passed!

@sg- sg- merged commit 2fe3e52 into ARMmbed:master Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants