-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: kernel: timer: behavior: Add test for premature timeouts
When k_timer_start() is called with relative timeout then it shall never expire before current time + that relative requested timeout. When k_timer_start() is called with absolute timeout then it shall never expire before that absolute timeout is reached. Add test suite which checks if timer do not expire before requested time. Test is checking 3 cases: - starting a timer from thread - starting a timer from timer expiration callback with variable delay before timer is started. - starting a timer from a timer expiration callback with variable delay after timer is started. In all 3 cases it is expected that timer will never expire before requested relative timeout (timeout is relative to k_timer_start call). Same set of scenarios are tested with absolute timers. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
- Loading branch information
1 parent
82334dc
commit 2204c12
Showing
1 changed file
with
193 additions
and
0 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