Skip to content

Commit 5408ed3

Browse files
mstasiaknordicnordicjm
authored andcommitted
[nrf fromlist] tests: drivers: timer: nrf_grtc_timer: wait for coverage dump
If test is to be run in coverage mode, wait for output to dump at the end of a failing testcase. Upstream PR #: 95162 Signed-off-by: Michał Stasiak <[email protected]>
1 parent 0af05cc commit 5408ed3

File tree

1 file changed

+7
-0
lines changed
  • tests/drivers/timer/nrf_grtc_timer/src

1 file changed

+7
-0
lines changed

tests/drivers/timer/nrf_grtc_timer/src/main.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,13 @@ static void grtc_stress_test(bool busy_sim_en)
393393
if (counter_dev) {
394394
counter_stop(counter_dev);
395395
}
396+
397+
#ifdef CONFIG_COVERAGE
398+
/* Wait a few seconds before exit, giving the test the
399+
* opportunity to dump some output before coverage data gets emitted
400+
*/
401+
k_sleep(K_MSEC(5000));
402+
#endif
396403
}
397404

398405
ZTEST(nrf_grtc_timer, test_stress)

0 commit comments

Comments
 (0)