Skip to content
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

unittest/main: do not intialize xtimer if ztimer_xtimer_compat #18352

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

kfessel
Copy link
Contributor

@kfessel kfessel commented Jul 21, 2022

@miri64 found an issue with unittest and ztimer_sleep in

#17680 (comment)

PR #18312 identified a potential double initialization of ztimer.

Contribution description

this removes the xtimer initialzation call if xtimer is used via ztimer_xtimer_compat. (this is the same behavior found in auto_init)

Testing procedure

see #18312

Issues/PRs references

@kfessel kfessel requested a review from miri64 as a code owner July 21, 2022 12:52
@github-actions github-actions bot added the Area: tests Area: tests and testing framework label Jul 21, 2022
@kfessel kfessel added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Jul 21, 2022
@benpicco benpicco requested a review from kaspar030 July 21, 2022 13:42
@kfessel kfessel enabled auto-merge July 21, 2022 13:47
@kfessel kfessel merged commit a43f4cb into RIOT-OS:master Jul 21, 2022
benpicco added a commit that referenced this pull request Jul 28, 2022
unittest: fix ztimer(64)_initilization #18352 #18365 [backport 2022.07]
@maribu maribu added this to the Release 2022.10 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants