Home
last modified time | relevance | path

Searched refs:slop (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/kernel/timer/timer_api/src/
Dmain.c92 int64_t slop = INEXACT_MS_CONVERT ? 1 : 0; in interval_check() local
102 slop += 2 * k_ticks_to_ms_ceil32(1); in interval_check()
105 if (!WITHIN_ERROR(interval, desired, slop)) { in interval_check()
808 int slop = MAX(2, k_us_to_ticks_ceil32(250)); in ZTEST_USER() local
810 zassert_true(late >= 0 && late <= slop, in ZTEST_USER()
828 zassert_true(late >= 0 && late <= slop, in ZTEST_USER()
/Zephyr-latest/tests/kernel/context/src/
Dmain.c228 uint32_t slop = 1 + k_ms_to_ticks_ceil32(1); in _test_kernel_cpu_idle() local
252 zassert_true(abs((int32_t) (dt - dur)) <= slop, in _test_kernel_cpu_idle()
885 int slop = MAX(k_ticks_to_ms_floor64(2), 1); in thread_sleep() local
887 if (timestamp < timeout || timestamp > timeout + slop) { in thread_sleep()