We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47fb5dc commit b97fc40Copy full SHA for b97fc40
tests/drivers/timer/grtc_timer_lfrc/src/main.c
@@ -11,6 +11,11 @@
11
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
12
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
19
20
typedef enum {
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");
177
z_nrf_grtc_timer_chan_free(channel);
178
}
0 commit comments