Skip to content

Commit 4133cb5

Browse files
ABOSTMMaureenHelm
authored andcommitted
tests: kernel: timer: timer_api: tick align for test_timer_k_define
Insert k_usleep(1) just before k_timer_start() to guaranty tick alignment for step "test_timer_k_define" Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent e37f819 commit 4133cb5

File tree

1 file changed

+1
-0
lines changed
  • tests/kernel/timer/timer_api/src

1 file changed

+1
-0
lines changed

tests/kernel/timer/timer_api/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ void test_timer_k_define(void)
474474
{
475475
init_timer_data();
476476
/** TESTPOINT: init timer via k_timer_init */
477+
k_usleep(1); /* align to tick */
477478
k_timer_start(&ktimer, K_MSEC(DURATION), K_MSEC(PERIOD));
478479
tdata.timestamp = k_uptime_get();
479480
busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2);

0 commit comments

Comments
 (0)