Skip to content

Commit 5a74bf3

Browse files
authored
Merge pull request #5020 from tyustli/mutex_tc
[add] utest kernel mutex_tc.c file
2 parents 7fa1c81 + 0b55a75 commit 5a74bf3

File tree

4 files changed

+685
-0
lines changed

4 files changed

+685
-0
lines changed

examples/utest/configs/kernel/ipc.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ CONFIG_UTEST_SEMAPHORE_TC=y
22
CONFIG_UTEST_EVENT_TC=y
33
CONFIG_UTEST_MESSAGEQUEUE_TC=y
44
CONFIG_UTEST_SIGNAL_TC=y
5+
CONFIG_UTEST_MUTEX_TC=y
56
# dependencies
67
CONFIG_RT_USING_SEMAPHORE=y
78
CONFIG_RT_USING_EVENT=y
89
CONFIG_RT_USING_MESSAGEQUEUE=y
910
CONFIG_RT_USING_SIGNALS=y
11+
CONFIG_RT_USING_MUTEX=y

examples/utest/testcases/kernel/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ config UTEST_SIGNAL_TC
3131
bool "signal test"
3232
default n
3333

34+
config UTEST_MUTEX_TC
35+
bool "mutex test"
36+
default n
37+
3438
endmenu

examples/utest/testcases/kernel/SConscript

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ if GetDepend(['UTEST_MESSAGEQUEUE_TC']):
2626
if GetDepend(['UTEST_SIGNAL_TC']):
2727
src += ['signal_tc.c']
2828

29+
if GetDepend(['UTEST_MUTEX_TC']):
30+
src += ['mutex_tc.c']
31+
2932
CPPPATH = [cwd]
3033

3134
group = DefineGroup('utestcases', src, depend = [], CPPPATH = CPPPATH)

0 commit comments

Comments
 (0)