diff --git a/components/mm/mm_memblock.c b/components/mm/mm_memblock.c index d3d4e44f64..3046c1caa9 100644 --- a/components/mm/mm_memblock.c +++ b/components/mm/mm_memblock.c @@ -397,7 +397,7 @@ void rt_memblock_setup_memory_environment(void) LOG_I("%ld MB memory installed to system page", mem/1000000); } -#ifdef UTEST_MM_API_TC +#ifdef RT_UTEST_MM_API /* functions below are only used for utest */ void rt_memblock_merge(void) { @@ -423,4 +423,4 @@ rt_bool_t rt_memblock_is_last_free(void) return mem == rt_slist_entry(&(mmblk_memory.reg_list), struct rt_mmblk_reg, node); } -#endif /* UTEST_MM_API_TC */ +#endif /* RT_UTEST_MM_API */ diff --git a/examples/utest/testcases/mm/Kconfig b/examples/utest/testcases/mm/Kconfig index b1c74e14d5..3c326bceec 100644 --- a/examples/utest/testcases/mm/Kconfig +++ b/examples/utest/testcases/mm/Kconfig @@ -1,6 +1,6 @@ menu "Memory Management Subsytem Testcase" - config UTEST_MM_API_TC + config RT_UTEST_MM_API bool "Enable Utest for MM API" default n help diff --git a/examples/utest/testcases/mm/SConscript b/examples/utest/testcases/mm/SConscript index 93c0667c0b..7e1beff71a 100644 --- a/examples/utest/testcases/mm/SConscript +++ b/examples/utest/testcases/mm/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() src = [] CPPPATH = [cwd] -if GetDepend(['UTEST_MM_API_TC', 'RT_USING_SMART']): +if GetDepend(['RT_UTEST_MM_API', 'RT_USING_SMART']): # deprecated test, will be rewrited in the future # src += ['mm_api_tc.c', 'mm_libcpu_tc.c'] src += ['rt_ioremap.c'] @@ -14,7 +14,7 @@ if GetDepend(['UTEST_MM_API_TC', 'RT_USING_SMART']): src += ['lwp_mmap_expand.c', 'lwp_mmap_map_fixed.c', 'lwp_mmap_fix_private.c'] src += ['lwp_mmap_fd.c', 'lwp_mmap_fd_map_fixed_merge.c', 'lwp_mmap_fd_map_fixed_split.c'] -if GetDepend(['UTEST_MM_API_TC', 'RT_USING_MEMBLOCK']): +if GetDepend(['RT_UTEST_MM_API', 'RT_USING_MEMBLOCK']): src += ['mm_memblock_tc.c'] if GetDepend(['UTEST_MM_LWP_TC', 'RT_USING_SMART']):