Skip to content
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/unittests: add a unit test for ztimer #20011

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

maribu
Copy link
Member

@maribu maribu commented Oct 23, 2023

Contribution description

This adds test coverage for removing ztimers with focus on ensuring that offsets are correctly updated on subsequent timers (e.g. not having timers fire too early).

Testing procedure

Run the unit tests (will be done by the CI as well). Maybe also introduce a random bug in ztimer_remove() and check if this is indeed caught by the unit tests.

Issues/PRs references

Prompted by #18977 (comment)

This adds test coverage for removing ztimers with focus on ensuring that
offsets are correctly updated on subsequent timers (e.g. not having
timers fire too early).
@maribu maribu requested review from benpicco and kaspar030 October 23, 2023 13:48
@maribu maribu requested a review from miri64 as a code owner October 23, 2023 13:48
@maribu maribu added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 23, 2023
@github-actions github-actions bot added the Area: tests Area: tests and testing framework label Oct 23, 2023
@benpicco benpicco requested a review from kfessel October 23, 2023 13:50
@riot-ci
Copy link

riot-ci commented Oct 23, 2023

Murdock results

✔️ PASSED

e5725f2 tests/unittests: add a unit test for ztimer

Success Failures Total Runtime
13 0 13 01m:20s

Artifacts

Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors merge

bors bot added a commit that referenced this pull request Oct 23, 2023
19990: sys/psa_crypto: allow repeated initialization r=benpicco a=mguetschow

### Contribution description

- simple unit test which calls `psa_crypto_init()` twice
- fix to no re-initialize key slots (which left them in a broken state)

### Testing procedure

- `make -C tests/sys/psa_crypto all test` succeeds
- `git checkout HEAD~1 && make -C tests/sys/psa_crypto all test` fails



20011: tests/unittests: add a unit test for ztimer r=benpicco a=maribu

### Contribution description

This adds test coverage for removing ztimers with focus on ensuring that offsets are correctly updated on subsequent timers (e.g. not having timers fire too early).

### Testing procedure

Run the unit tests (will be done by the CI as well). Maybe also introduce a random bug in `ztimer_remove()` and check if this is indeed caught by the unit tests.

### Issues/PRs references

Prompted by #18977 (comment)

Co-authored-by: Mikolai Gütschow <mikolai.guetschow@tu-dresden.de>
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
@bors
Copy link
Contributor

bors bot commented Oct 23, 2023

Build failed (retrying...):

@bors
Copy link
Contributor

bors bot commented Oct 23, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit d8b8f4e into RIOT-OS:master Oct 23, 2023
@maribu maribu deleted the tests/unittests-ztimer branch December 5, 2023 08:21
@MrKevinWeiss MrKevinWeiss added this to the Release 2024.01 milestone Feb 7, 2024
# 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants