-
Notifications
You must be signed in to change notification settings - Fork 3k
Add block device test for small data sizes #8740
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
Add block device test for small data sizes #8740
Conversation
@dannybenor @davidsaada @offirko |
// Determine starting address | ||
bd_addr_t start_address = 0; | ||
|
||
for (int i = 1; i < 7; i++) { |
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.
Should be 'i < 8' if you want the test to run 7 times, to include the entire write_buffer "1234567"
@theamirocohen Please do not remove parts of the description template! Please fix |
|
||
err = block_device->program((const void *)write_buffer, start_address, i); | ||
TEST_ASSERT_EQUAL(0, err); | ||
|
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.
should call 'sync' with BufferedBlockDevice to make sure the data was flushed to the underlying bd.
Even with 'sync' I think next read will read from the 'cache' and not from the underlying bd - at least for the first iteration.
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.
@offirko Cache is invalidate after flushing (sync
included), so it will always read from the bd itself.
But I agree with you regarding the need to call sync
.
Hi |
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.
K82F & K64F |
@theamirocohen Can you rebase instead for merging master here? Commit 3ca93c9 |
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.
Rebase instead of merge, and should be ready for CI
785d9c5
to
b114a12
Compare
b114a12
to
cf84615
Compare
/morph build |
Build : SUCCESSBuild number : 3688 Triggering tests/morph test |
Exporter Build : FAILUREBuild number : 3289 |
Test : FAILUREBuild number : 3462 |
@0xc0170 it looks like the failures are CI problems. |
Correct, we fixed some and restarting some jobs. This might be a good candidate to be included in rollup PR |
Info: This PR has been re-bundled into a new rollup PR (#8838 ). No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. |
Description
Added a new test + astyle the test file
Depends on PR #8703
Pull request type