-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: posix: nanosleep: round up to the nearest microsecond
Here, we include some addtional tests for durations that have sub-microsecond components. 1ns => k_busy_wait(0). Round to 1us. 1us + 1ns => k_busy_wait(1us). Round to 2us. 1s + 1ns => k_busy_wait(1000000us). Round to 1000001us. 1s + 1us + 1ns => k_busy_wait(1000001us). Round to 1000002us. Fixes #28483 Signed-off-by: Christopher Friedt <[email protected]>
- Loading branch information
1 parent
3cdf718
commit 75b9292
Showing
2 changed files
with
40 additions
and
36 deletions.
There are no files selected for viewing
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
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