-
Notifications
You must be signed in to change notification settings - Fork 3k
Storage related test improvements and small fixes #11986
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
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.
Looks good to me
@SeppoTakalo, thank you for your changes. |
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.
Looks good to me
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Failures look related, please review |
Make sure that all data has been written on the underlying storage when we do deinit().
885ca50
to
0fe159f
Compare
Started a CI. |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
@0xc0170 This is ready. |
Description
Summary of change
Small changes in this PR:
Documentation
Pull request type
Test results
Reviewers
@VeijoPesonen
Release Notes
Summary of changes
SlicingBlockDevice
does not anymore accept both parameters as zero, or size as zero.SlicingBlockDevice(block, 0,0)
used to create a block device that took up the whole block device. There is no sense on doing so, and if used like this, it has most probably been a programming error. Therefore the constructor now doesMBED_ASSERT()
if both parameters,start
andstop
point to same value. Effectively this prevents creating a slice that has size of zero, or take the full block device.Impact of changes
You cannot anymore create a SlicingBlockDevice that has size of zero, or take the full size of underlying block device.
Migration actions required
No migration required for code that uses SlicingBlockDevice as it is intended.