Skip to content

Commit bedb7e1

Browse files
nordic-krchnashif
authored andcommitted
tests: kernel: timer: timer_behavior: Adjust TIMER_TEST_SAMPLES
Adjust default number of test samples which is based on SRAM size. Test is using 8*TIMER_TEST_SAMPLES and with previous defaults for the device with 64k RAM it was using 56k of test data leaving only 8k RAM and that was easily not enough. Adjust conditions to take less samples when SRAM_SIZE is equal to the threshold. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 4a94a33 commit bedb7e1

File tree

1 file changed

+5
-5
lines changed
  • tests/kernel/timer/timer_behavior

1 file changed

+5
-5
lines changed

tests/kernel/timer/timer_behavior/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ source "Kconfig.zephyr"
1010

1111
config TIMER_TEST_SAMPLES
1212
int "The number of timer samples to gather for statistics"
13-
default 1000 if (SRAM_SIZE < 24)
14-
default 2000 if (SRAM_SIZE < 32)
15-
default 3000 if (SRAM_SIZE < 48)
16-
default 5000 if (SRAM_SIZE < 64)
17-
default 7000 if (SRAM_SIZE < 96)
13+
default 1000 if (SRAM_SIZE <= 24)
14+
default 2000 if (SRAM_SIZE <= 32)
15+
default 3000 if (SRAM_SIZE <= 48)
16+
default 5000 if (SRAM_SIZE <= 64)
17+
default 7000 if (SRAM_SIZE <= 96)
1818
default 10000
1919

2020
config TIMER_TEST_PERIOD

0 commit comments

Comments
 (0)