Skip to content

Commit 3b70688

Browse files
committed
utest: UTEST_MM_API_TC -> RT_UTEST_MM_API
Signed-off-by: Chen Wang <[email protected]>
1 parent 57c0662 commit 3b70688

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/mm/mm_memblock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ void rt_memblock_setup_memory_environment(void)
397397
LOG_I("%ld MB memory installed to system page", mem/1000000);
398398
}
399399

400-
#ifdef UTEST_MM_API_TC
400+
#ifdef RT_UTEST_MM_API
401401
/* functions below are only used for utest */
402402
void rt_memblock_merge(void)
403403
{
@@ -423,4 +423,4 @@ rt_bool_t rt_memblock_is_last_free(void)
423423
return mem == rt_slist_entry(&(mmblk_memory.reg_list), struct rt_mmblk_reg, node);
424424
}
425425

426-
#endif /* UTEST_MM_API_TC */
426+
#endif /* RT_UTEST_MM_API */

examples/utest/testcases/mm/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
menu "Memory Management Subsytem Testcase"
22

3-
config UTEST_MM_API_TC
3+
config RT_UTEST_MM_API
44
bool "Enable Utest for MM API"
55
default n
66
help

examples/utest/testcases/mm/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cwd = GetCurrentDir()
55
src = []
66
CPPPATH = [cwd]
77

8-
if GetDepend(['UTEST_MM_API_TC', 'RT_USING_SMART']):
8+
if GetDepend(['RT_UTEST_MM_API', 'RT_USING_SMART']):
99
# deprecated test, will be rewrited in the future
1010
# src += ['mm_api_tc.c', 'mm_libcpu_tc.c']
1111
src += ['rt_ioremap.c']
@@ -14,7 +14,7 @@ if GetDepend(['UTEST_MM_API_TC', 'RT_USING_SMART']):
1414
src += ['lwp_mmap_expand.c', 'lwp_mmap_map_fixed.c', 'lwp_mmap_fix_private.c']
1515
src += ['lwp_mmap_fd.c', 'lwp_mmap_fd_map_fixed_merge.c', 'lwp_mmap_fd_map_fixed_split.c']
1616

17-
if GetDepend(['UTEST_MM_API_TC', 'RT_USING_MEMBLOCK']):
17+
if GetDepend(['RT_UTEST_MM_API', 'RT_USING_MEMBLOCK']):
1818
src += ['mm_memblock_tc.c']
1919

2020
if GetDepend(['UTEST_MM_LWP_TC', 'RT_USING_SMART']):

0 commit comments

Comments
 (0)