mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-07 09:52:08 +08:00
[add] utest kernel mutex_tc.c file
This commit is contained in:
@@ -2,8 +2,10 @@ CONFIG_UTEST_SEMAPHORE_TC=y
|
||||
CONFIG_UTEST_EVENT_TC=y
|
||||
CONFIG_UTEST_MESSAGEQUEUE_TC=y
|
||||
CONFIG_UTEST_SIGNAL_TC=y
|
||||
CONFIG_UTEST_MUTEX_TC=y
|
||||
# dependencies
|
||||
CONFIG_RT_USING_SEMAPHORE=y
|
||||
CONFIG_RT_USING_EVENT=y
|
||||
CONFIG_RT_USING_MESSAGEQUEUE=y
|
||||
CONFIG_RT_USING_SIGNALS=y
|
||||
CONFIG_RT_USING_MUTEX=y
|
||||
@@ -31,4 +31,8 @@ config UTEST_SIGNAL_TC
|
||||
bool "signal test"
|
||||
default n
|
||||
|
||||
config UTEST_MUTEX_TC
|
||||
bool "mutex test"
|
||||
default n
|
||||
|
||||
endmenu
|
||||
|
||||
@@ -26,6 +26,9 @@ if GetDepend(['UTEST_MESSAGEQUEUE_TC']):
|
||||
if GetDepend(['UTEST_SIGNAL_TC']):
|
||||
src += ['signal_tc.c']
|
||||
|
||||
if GetDepend(['UTEST_MUTEX_TC']):
|
||||
src += ['mutex_tc.c']
|
||||
|
||||
CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('utestcases', src, depend = [], CPPPATH = CPPPATH)
|
||||
|
||||
676
examples/utest/testcases/kernel/mutex_tc.c
Normal file
676
examples/utest/testcases/kernel/mutex_tc.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user