tests/thread_float: fix test script#18255
Merged
chrysn merged 2 commits intoRIOT-OS:masterfrom Jun 30, 2022
Merged
Conversation
miri64
reviewed
Jun 23, 2022
miri64
reviewed
Jun 23, 2022
aff1289 to
1fcf076
Compare
miri64
previously approved these changes
Jun 24, 2022
Member
Author
|
Oha, this doesn't look good: (That the FPU state is not properly saved and restored on context switch on |
Member
Author
|
OK, the fix is rather trivial, I just add a new commit here and disable auto-merge. |
I'm about to add a new commit to fix another issue, which will render the review outdated
chrysn
approved these changes
Jun 30, 2022
Member
chrysn
left a comment
There was a problem hiding this comment.
Looks good to me, thanks. One of the nightly regulars down, two to go.
(Please merge right away, or after applying the manual suggestion -- I want tests to pass badly enough not to insist on any change :-) )
2 tasks
Previously the test script expected runnable threads of the same priority to be running in a specific order. But the only tool that is guaranteed to enforce a specific order of runnable threads is assigning them different priority levels. This should fix a test failure in the nightlies. Co-authored-by: Martine Lenders <[email protected]>
Split out the regex that matches the output line into a dedicated function (as it is used three times) and make it also accept nan and inf as double values. Previously a nan didn't match and occasional nans were not detected as a test failure.
1a5012a to
94ccc6c
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Contribution description
Previously the test script expected runnable threads of the same
priority to be running in a specific order. But the only tool that is
guaranteed to enforce a specific order of runnable threads is assigning
them different priority levels.
This should fix a test failure in the nightlies.
Testing procedure
Murdock will do so
Issues/PRs references
None