From bedb7e16c3b0c091f90ff64de760ec7dc9580a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Thu, 7 Nov 2024 10:39:24 +0100 Subject: [PATCH] tests: kernel: timer: timer_behavior: Adjust TIMER_TEST_SAMPLES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/kernel/timer/timer_behavior/Kconfig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/kernel/timer/timer_behavior/Kconfig b/tests/kernel/timer/timer_behavior/Kconfig index fa954f000a1..52035441676 100644 --- a/tests/kernel/timer/timer_behavior/Kconfig +++ b/tests/kernel/timer/timer_behavior/Kconfig @@ -10,11 +10,11 @@ source "Kconfig.zephyr" config TIMER_TEST_SAMPLES int "The number of timer samples to gather for statistics" - default 1000 if (SRAM_SIZE < 24) - default 2000 if (SRAM_SIZE < 32) - default 3000 if (SRAM_SIZE < 48) - default 5000 if (SRAM_SIZE < 64) - default 7000 if (SRAM_SIZE < 96) + default 1000 if (SRAM_SIZE <= 24) + default 2000 if (SRAM_SIZE <= 32) + default 3000 if (SRAM_SIZE <= 48) + default 5000 if (SRAM_SIZE <= 64) + default 7000 if (SRAM_SIZE <= 96) default 10000 config TIMER_TEST_PERIOD