From 180e2662bd39dfc57b5f0b02c5cf4397f18531e6 Mon Sep 17 00:00:00 2001 From: William Tambe Date: Mon, 20 Oct 2025 08:40:14 -0800 Subject: [PATCH] tests: kernel/common: skip test_nested_irq_offload if more than 1 CPU test_nested_irq_offload is meant for single CPU. Skip it if there is more than 1 CPU. Signed-off-by: William Tambe --- tests/kernel/common/src/irq_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kernel/common/src/irq_offload.c b/tests/kernel/common/src/irq_offload.c index 3526aa81b841d..b6b852037c79e 100644 --- a/tests/kernel/common/src/irq_offload.c +++ b/tests/kernel/common/src/irq_offload.c @@ -111,7 +111,7 @@ static void offload_thread_fn(void *p0, void *p1, void *p2) */ ZTEST(common_1cpu, test_nested_irq_offload) { - if (!IS_ENABLED(CONFIG_IRQ_OFFLOAD_NESTED)) { + if (arch_num_cpus() > 1 || !IS_ENABLED(CONFIG_IRQ_OFFLOAD_NESTED)) { ztest_test_skip(); }