File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
tests/drivers/timer/grtc_timer_lfrc/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11
11
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
12
12
13
13
#define REQUEST_SERVING_WAIT_TIME_US 10000
14
+ #if defined(CONFIG_COVERAGE )
15
+ #define DIFF_TOLERANCE 2
16
+ #else
17
+ #define DIFF_TOLERANCE 1
18
+ #endif
14
19
15
20
typedef enum {
16
21
NO_CHANGE = 0 ,
@@ -167,7 +172,7 @@ static void test_timer_compare(const struct accuracy_test_limit *test_limit,
167
172
compare_count_value - compare_value );
168
173
169
174
zassert_true ((compare_count_value - compare_value ) <
170
- test_limit -> final_max_ticks_count_difference ,
175
+ test_limit -> final_max_ticks_count_difference * DIFF_TOLERANCE ,
171
176
"Maximal final ticks count difference is over the limit" );
172
177
z_nrf_grtc_timer_chan_free (channel );
173
178
}
You can’t perform that action at this time.
0 commit comments