285bfa7f62
Existing test checking value returned by k_delayed_work_remaining_get() verified two cases: 1) The k_delayed_work_remaining_get() should return 0 for non-submitted work. 2) The k_delayed_work_remaining_get() should return value greater or equal to the timeout value of just submitted work. Unfortunately, the second check is not correct. The value returned by the k_delayed_work_remaining_get() just after submitting delayed work should be: - Equal to timeout of the submitted work if no timer interrupt was executed between submitting work and checking remaining time. OR - Less than timeout of the submitted work if a timer interrupt was executed between submitting work and checking remaining time. This commit changes the test accordingly taking under account the error caused by back and forth conversion between ms and ticks. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
testcase.yaml |