From 0c35b803fa3437a92894c4e0a128e686dda82db2 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 10 Feb 2022 04:29:17 -0500 Subject: [PATCH] [utestcases] add dependence RT_USING_UTESTCASES --- examples/utest/testcases/kernel/SConscript | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/utest/testcases/kernel/SConscript b/examples/utest/testcases/kernel/SConscript index 95959f1f9b..8e7cf42cd8 100644 --- a/examples/utest/testcases/kernel/SConscript +++ b/examples/utest/testcases/kernel/SConscript @@ -2,8 +2,8 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Split(''' -''') +src = [] +CPPPATH = [cwd] if GetDepend(['UTEST_MEMHEAP_TC']): src += ['memheap_tc.c'] @@ -41,8 +41,6 @@ if GetDepend(['UTEST_MAILBOX_TC']): if GetDepend(['UTEST_THREAD_TC']): src += ['thread_tc.c'] -CPPPATH = [cwd] - -group = DefineGroup('utestcases', src, depend = [''], CPPPATH = CPPPATH) +group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH) Return('group')