tests: lib: mem_alloc: Fix up conditions for "no_mem" testcases
These should run for minlibc configured with CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=0. In all other cases normal testsuite should run. How preprocessor #if's were put previously, some configurations, e.g. prj_newlib.conf, had the testsuite completely skipped. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
38ed9c885e
commit
39b0423e7a
1 changed files with 1 additions and 3 deletions
|
@ -345,14 +345,12 @@ __no_optimization void test_memalloc_max(void)
|
|||
|
||||
void test_main(void)
|
||||
{
|
||||
#if (CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE == 0)
|
||||
#ifndef CONFIG_NEWLIB_LIBC
|
||||
#if defined(CONFIG_MINIMAL_LIBC) && CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE == 0
|
||||
ztest_test_suite(test_c_lib_dynamic_memalloc,
|
||||
ztest_user_unit_test(test_no_mem_malloc),
|
||||
ztest_user_unit_test(test_no_mem_realloc)
|
||||
);
|
||||
ztest_run_test_suite(test_c_lib_dynamic_memalloc);
|
||||
#endif
|
||||
#else
|
||||
ztest_test_suite(test_c_lib_dynamic_memalloc,
|
||||
ztest_user_unit_test(test_malloc_align),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue