tests: kernel: timer_api: remove extra adjustment to expected result
The converted target value for remaining ticks was increased by one to match original code, which used a one-sided test. The current test is two-sided, so that increment is already present in the allowed 1 tick error for boards with no slew, and incorporating it into the absolute error can cause the test to fail. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
6e9d109922
commit
31d615eab5
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ void test_timer_user_data(void)
|
|||
void test_timer_remaining(void)
|
||||
{
|
||||
uint32_t dur_ticks = k_ms_to_ticks_ceil32(DURATION);
|
||||
uint32_t target_rem_ticks = k_ms_to_ticks_ceil32(DURATION / 2) + 1;
|
||||
uint32_t target_rem_ticks = k_ms_to_ticks_ceil32(DURATION / 2);
|
||||
uint32_t rem_ms, rem_ticks, exp_ticks;
|
||||
int32_t delta_ticks;
|
||||
uint32_t slew_ticks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue