From 45dba1e1f04d3968bdf19a38951f1c890e287dd6 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 26 Sep 2019 18:33:30 -0700 Subject: [PATCH] tests: ztest: no smp support in unit tests SMP support for ztest does not apply to unit tests. Signed-off-by: Anas Nashif --- subsys/testsuite/ztest/src/ztest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subsys/testsuite/ztest/src/ztest.c b/subsys/testsuite/ztest/src/ztest.c index 9f85d49c786..51ddd55bdf4 100644 --- a/subsys/testsuite/ztest/src/ztest.c +++ b/subsys/testsuite/ztest/src/ztest.c @@ -55,6 +55,7 @@ static int cleanup_test(struct unit_test *test) return ret; } +#ifdef KERNEL #ifdef CONFIG_SMP #define NUM_CPUHOLD (CONFIG_MP_NUM_CPUS - 1) #else @@ -124,6 +125,8 @@ void z_test_1cpu_stop(void) } } +#endif + static void run_test_functions(struct unit_test *test) { phase = TEST_PHASE_SETUP;