From f47330edd8f5578957885593d533b42eb7e78039 Mon Sep 17 00:00:00 2001 From: Daniel Mangum Date: Thu, 15 May 2025 15:06:32 -0400 Subject: [PATCH] tests: kernel: set timeslice size to 0 in tests that do not exercise it Sets CONFIG_TIMESLICE_SIZE=0 for tests that previously expected to run without timeslicing enabled, and now fail with the default CONFIG_TIMESLICE_SIZE=20. Note that timeslicing functionality is still included, but no actual timeslicing is performed. Signed-off-by: Daniel Mangum --- samples/subsys/zbus/msg_subscriber/prj.conf | 1 + tests/integration/kernel/prj.conf | 1 + tests/kernel/pipe/deprecated/pipe/prj.conf | 1 + tests/kernel/semaphore/semaphore/prj.conf | 1 + 4 files changed, 4 insertions(+) diff --git a/samples/subsys/zbus/msg_subscriber/prj.conf b/samples/subsys/zbus/msg_subscriber/prj.conf index f24e55664ed..fa7aef24ba0 100644 --- a/samples/subsys/zbus/msg_subscriber/prj.conf +++ b/samples/subsys/zbus/msg_subscriber/prj.conf @@ -3,6 +3,7 @@ CONFIG_LOG_MODE_MINIMAL=y CONFIG_ASSERT=y CONFIG_BOOT_BANNER=n CONFIG_MAIN_THREAD_PRIORITY=3 +CONFIG_TIMESLICE_SIZE=0 CONFIG_ZBUS=y CONFIG_ZBUS_LOG_LEVEL_INF=y CONFIG_ZBUS_CHANNEL_NAME=y diff --git a/tests/integration/kernel/prj.conf b/tests/integration/kernel/prj.conf index f8d48f84037..60709239366 100644 --- a/tests/integration/kernel/prj.conf +++ b/tests/integration/kernel/prj.conf @@ -1,2 +1,3 @@ CONFIG_ZTEST=y CONFIG_MP_MAX_NUM_CPUS=1 +CONFIG_TIMESLICE_SIZE=0 diff --git a/tests/kernel/pipe/deprecated/pipe/prj.conf b/tests/kernel/pipe/deprecated/pipe/prj.conf index 05f0c74d408..5b67871bd39 100644 --- a/tests/kernel/pipe/deprecated/pipe/prj.conf +++ b/tests/kernel/pipe/deprecated/pipe/prj.conf @@ -1,4 +1,5 @@ CONFIG_ZTEST=y CONFIG_TEST_USERSPACE=y CONFIG_MP_MAX_NUM_CPUS=1 +CONFIG_TIMESLICE_SIZE=0 CONFIG_PIPES=y diff --git a/tests/kernel/semaphore/semaphore/prj.conf b/tests/kernel/semaphore/semaphore/prj.conf index 1ae0b78bdbf..f17ff0ef069 100644 --- a/tests/kernel/semaphore/semaphore/prj.conf +++ b/tests/kernel/semaphore/semaphore/prj.conf @@ -3,3 +3,4 @@ CONFIG_IRQ_OFFLOAD=y CONFIG_TEST_USERSPACE=y CONFIG_ZTEST_FATAL_HOOK=y CONFIG_MAX_THREAD_BYTES=3 +CONFIG_TIMESLICE_SIZE=0