-
Notifications
You must be signed in to change notification settings - Fork 8.2k
m2gl025_miv: workaround for issue #17851 #17929
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
|
Getting a failed assertion still in one test |
This is the workaround suggested by Andy Ross to fix zephyrproject-rtos#17851. Signed-off-by: Nicolas Pitre <[email protected]>
Commit 33c64c2 ("tests/cmsis_rtos_v1: Correct timing assumptions") introduced a stricter criteria where time spent has to match the clock within 1% discrepancy. It is zassert_true(diff < max && diff > min) meaning _less than_ 1%. The test uses a 1-second delay. When SYS_CLOCK_TICKS_PER_SEC=100 that means a single tick discrepancy would overflow the test. Let's be inclusive and allow up to 1% instead. That allows for this test to pass on m2gl025_miv when using 100 ticks per sec. Signed-off-by: Nicolas Pitre <[email protected]>
Commit ee4c23c ("CMSIS v2: Work around time unit confusion") enforced CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000 on this test, but the m2gl025_miv platform has some issues with it. Let's exclude it for now. Signed-off-by: Nicolas Pitre <[email protected]>
Author
|
On Wed, 31 Jul 2019, Andrew Boie wrote:
Getting a failed assertion still in one test
All fixed now.
|
andrewboie
approved these changes
Aug 2, 2019
carlescufi
approved these changes
Aug 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Boards
area: Tests
Issues related to a particular existing or missing test
Hotfix
Fix for issues blocking development, i.e. upstream CI issues, tests failing in upstream CI , etc.
priority: high
High impact/importance bug
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the workaround suggested by Andy Ross to fix #17851.