Skip to content

Commit

Permalink
tests: ztest: no smp support in unit tests
Browse files Browse the repository at this point in the history
SMP support for ztest does not apply to unit tests.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Sep 27, 2019
1 parent 76a3235 commit 45dba1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subsys/testsuite/ztest/src/ztest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -124,6 +125,8 @@ void z_test_1cpu_stop(void)
}
}

#endif

static void run_test_functions(struct unit_test *test)
{
phase = TEST_PHASE_SETUP;
Expand Down

0 comments on commit 45dba1e

Please sign in to comment.