tests: ztest: no smp support in unit tests
SMP support for ztest does not apply to unit tests. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
76a3235ad2
commit
45dba1e1f0
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,7 @@ static int cleanup_test(struct unit_test *test)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef KERNEL
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
#define NUM_CPUHOLD (CONFIG_MP_NUM_CPUS - 1)
|
#define NUM_CPUHOLD (CONFIG_MP_NUM_CPUS - 1)
|
||||||
#else
|
#else
|
||||||
|
@ -124,6 +125,8 @@ void z_test_1cpu_stop(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
static void run_test_functions(struct unit_test *test)
|
static void run_test_functions(struct unit_test *test)
|
||||||
{
|
{
|
||||||
phase = TEST_PHASE_SETUP;
|
phase = TEST_PHASE_SETUP;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue