-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
tests/periph_timer: also test for spurious IRQs #18963
Merged
Merged
Conversation
This file contains 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
4787cc2
to
e1d2d1b
Compare
(IMO the periph fixes should not in a |
This was referenced Nov 24, 2022
Agreed. It does make testing easier though, if the CI runs the tests along with the fixes. When this is rebased on |
This was referenced Nov 25, 2022
To synchronize communication via shared memory between ISR context and thread context it is a common misconception that `volatile` is sufficient. This is however is not the cause and the cause of many subtle data race bugs. This fixes the issue.
Previously the test only checked if IRQs fired when expected. This extends the test to also check that IRQs do not fire when not expected.
26558c8
to
496abf0
Compare
This was referenced Nov 25, 2022
✅ frdm-k22f
✅ nucleo-f091rc
✅ nucleo-f303re
✅ nucleo-f767zi
✅ nucleo-l152re
✅ arduino-mega2560
✅ nucleo-l432kc
✅ saml10-xpro
✅ saml11-xpro
✅ samr21-xpro
✅ nrf52dk
✅ remote-revb
✅ nucleo-l073rz
✅ slstk3401a
✅ nucleo-f411re
✅ nucleo-f103rb
✅ frdm-kw41z
✅ esp8266-esp-12x
✅ esp32-wroom-32
✅ z1
✅ arduino-due
|
This was referenced Nov 26, 2022
benpicco
approved these changes
Dec 7, 2022
Thx :) |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
Area: tests
Area: tests and testing framework
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Type: enhancement
The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
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 only checked if IRQs fired when expected. This extends the test to also check that IRQs do not fire when not expected.
In addition, some long overdue style / misuse of
volatile
fixes are added as separate commit.Testing procedure
The test app should pass on correct timer drivers (e.g.
samr21-xpro
), and fail on broken ones (e.g.nucleo-f767zi
).Issues/PRs references
None