Skip to content

fix log test#2746

Merged
bors[bot] merged 1 commit into
tock:masterfrom
hudson-ayers:log-test-fix
Aug 10, 2021
Merged

fix log test#2746
bors[bot] merged 1 commit into
tock:masterfrom
hudson-ayers:log-test-fix

Conversation

@hudson-ayers

Copy link
Copy Markdown
Contributor

Pull Request Overview

This pull request fixes the log test to reflect the error actually returned when reading with a too-small buffer. This test failed on 1.6 release testing and was not fixed so this at least updates the test to a runnable state. An alternative fix would involve modifying the errors returned up/down the nonvolatile_storage stack, but that interface is highly unstable and ErrorCodes are not specified, so I am preferring the quick fix for now.

Testing Strategy

This pull request was tested by running the log test on imix

TODO or Help Wanted

N/A

Documentation Updated

  • no updates are required.

Formatting

  • Ran make prepush.

@hudson-ayers hudson-ayers added release-blocker Issue or PR that must be resolved before the next release tock-2.0 Issues and PRs related to Tock version 2.0. P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny. labels Aug 9, 2021
@hudson-ayers hudson-ayers mentioned this pull request Aug 9, 2021
23 tasks
@bradjc

bradjc commented Aug 10, 2021

Copy link
Copy Markdown
Contributor

bors r+

@bors

bors Bot commented Aug 10, 2021

Copy link
Copy Markdown
Contributor

@bors bors Bot merged commit e5f3e3f into tock:master Aug 10, 2021
sirchnik pushed a commit to sirchnik/tock that referenced this pull request May 12, 2026
2746: fix log test r=bradjc a=hudson-ayers

### Pull Request Overview

This pull request fixes the log test to reflect the error actually returned when reading with a too-small buffer. This test failed on 1.6 release testing and was not fixed so this at least updates the test to a runnable state. An alternative fix would involve modifying the errors returned up/down the nonvolatile_storage stack, but that interface is highly unstable and `ErrorCode`s are not specified, so I am preferring the quick fix for now.


### Testing Strategy

This pull request was tested by running the log test on imix


### TODO or Help Wanted

N/A

### Documentation Updated

- [x] no updates are required.

### Formatting

- [x] Ran `make prepush`.


Co-authored-by: Hudson Ayers <hayers@stanford.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny. release-blocker Issue or PR that must be resolved before the next release tock-2.0 Issues and PRs related to Tock version 2.0.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants