Skip to content

Commit f47330e

Browse files
hasheddankartben
authored andcommitted
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 <georgedanielmangum@gmail.com>
1 parent e337b7b commit f47330e

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

samples/subsys/zbus/msg_subscriber/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ CONFIG_LOG_MODE_MINIMAL=y
33
CONFIG_ASSERT=y
44
CONFIG_BOOT_BANNER=n
55
CONFIG_MAIN_THREAD_PRIORITY=3
6+
CONFIG_TIMESLICE_SIZE=0
67
CONFIG_ZBUS=y
78
CONFIG_ZBUS_LOG_LEVEL_INF=y
89
CONFIG_ZBUS_CHANNEL_NAME=y

tests/integration/kernel/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
CONFIG_ZTEST=y
22
CONFIG_MP_MAX_NUM_CPUS=1
3+
CONFIG_TIMESLICE_SIZE=0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_ZTEST=y
22
CONFIG_TEST_USERSPACE=y
33
CONFIG_MP_MAX_NUM_CPUS=1
4+
CONFIG_TIMESLICE_SIZE=0
45
CONFIG_PIPES=y

tests/kernel/semaphore/semaphore/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ CONFIG_IRQ_OFFLOAD=y
33
CONFIG_TEST_USERSPACE=y
44
CONFIG_ZTEST_FATAL_HOOK=y
55
CONFIG_MAX_THREAD_BYTES=3
6+
CONFIG_TIMESLICE_SIZE=0

0 commit comments

Comments
 (0)