Skip to content

Commit 8c9fd0b

Browse files
committed
tests: drivers: timer: nrf_grtc_timer: fix busy sim variant
Use busy simulator only if it is enabled in Kconfig. Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
1 parent d98826f commit 8c9fd0b

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,9 @@ static void grtc_stress_test(bool busy_sim_en)
355355
}
356356

357357
if (busy_sim_en) {
358+
#ifdef CONFIG_TEST_BUSY_SIM
358359
busy_sim_start(500, 200, 1000, 400, NULL);
360+
#endif
359361
}
360362

361363
LOG_DBG("Starting test, will end at %d", test_end);
@@ -387,7 +389,9 @@ static void grtc_stress_test(bool busy_sim_en)
387389
TC_PRINT("CPU load during test:%d.%d\n", load / 10, load % 10);
388390

389391
if (busy_sim_en) {
392+
#ifdef CONFIG_TEST_BUSY_SIM
390393
busy_sim_stop();
394+
#endif
391395
}
392396

393397
if (counter_dev) {

0 commit comments

Comments
 (0)