Skip to content

Commit 5215361

Browse files
committed
test: nerver disable SMP
To turn SMP on pervasively. Tests should be treated with a combination of flagging specific cases as "1cpu" where we have short-running tests that can be independently run in an otherwise SMP environment, and via setting CONFIG_MP_NUM_CPUS=1 where that's not possible (which still runs the full SMP kernel config, but with only one CPU available). Signed-off-by: Watson Zeng <[email protected]>
1 parent a42890f commit 5215361

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

samples/subsys/tracing/sample.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ tests:
1414
extra_configs:
1515
- CONFIG_MP_NUM_CPUS=1
1616
- CONFIG_DEBUG_THREAD_INFO=y
17-
- CONFIG_SMP=n
1817
arch_exclude: posix xtensa
1918
platform_exclude: qemu_x86_64
2019
tracing.transport.uart:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CONFIG_ZTEST=y
22
CONFIG_TEST_USERSPACE=y
3-
CONFIG_SMP=n
3+
CONFIG_MP_NUM_CPUS=1

tests/net/socket/tls/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Setup for self-contained net testing without requiring a SLIP driver
2-
CONFIG_SMP=n
2+
CONFIG_MP_NUM_CPUS=1
33
CONFIG_NET_TEST=y
44

55
# General config

tests/net/socket/tls_ext/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# General config
2-
CONFIG_SMP=n
2+
CONFIG_MP_NUM_CPUS=1
33
CONFIG_ZTEST=y
44

55
# Networking config

tests/posix/common/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ CONFIG_HEAP_MEM_POOL_SIZE=4096
88
CONFIG_MAX_THREAD_BYTES=4
99
CONFIG_THREAD_NAME=y
1010

11-
CONFIG_SMP=n
11+
CONFIG_MP_NUM_CPUS=1

tests/subsys/portability/cmsis_rtos_v1/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ CONFIG_CMSIS_RTOS_V1=y
55
CONFIG_MAX_THREAD_BYTES=4
66
CONFIG_IRQ_OFFLOAD=y
77
CONFIG_CMSIS_THREAD_MAX_STACK_SIZE=2048
8-
CONFIG_SMP=n
8+
CONFIG_MP_NUM_CPUS=1

0 commit comments

Comments
 (0)