Home
last modified time | relevance | path

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

/Zephyr-latest/tests/arch/common/timing/src/
Dmain.c25 #define TOLERANCE 0.1 macro
53 zassert_within(diff1, diff2, diff1 * TOLERANCE, NULL); in perform_tests()
54 zassert_within(diff_all, diff1 + diff2, (diff1 + diff2) * TOLERANCE, in perform_tests()
66 zassert_within(diff1_ns, WAIT_NS, WAIT_NS * TOLERANCE, NULL); in perform_tests()
67 zassert_within(diff2_ns, WAIT_NS, WAIT_NS * TOLERANCE, NULL); in perform_tests()
68 zassert_within(diff_all_ns, 2 * WAIT_NS, 2 * WAIT_NS * TOLERANCE, NULL); in perform_tests()
71 zassert_within(diff_avg_ns, WAIT_NS, WAIT_NS * TOLERANCE, NULL); in perform_tests()
/Zephyr-latest/tests/boards/native_sim/rtc/src/
Dmain.c42 #define TOLERANCE 20 /* ms Tolerance in native_posix time after WAIT_TIME */ macro
100 TOLERANCE); in ZTEST()
102 zassert_true(llabs(error) < TOLERANCE, in ZTEST()
120 zassert_true(llabs(error) < TOLERANCE, in ZTEST()
159 zassert_true(llabs(error) < TOLERANCE, in ZTEST()