Skip to content

Commit 714fee0

Browse files
authored
Merge pull request #5032 from liukangcc/utest
[UPDATE] mailbox testcase.
2 parents 5a74bf3 + bf94a69 commit 714fee0

File tree

4 files changed

+381
-1
lines changed

4 files changed

+381
-1
lines changed

examples/utest/configs/kernel/ipc.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ CONFIG_UTEST_EVENT_TC=y
33
CONFIG_UTEST_MESSAGEQUEUE_TC=y
44
CONFIG_UTEST_SIGNAL_TC=y
55
CONFIG_UTEST_MUTEX_TC=y
6+
CONFIG_UTEST_MAILBOX_TC=y
67
# dependencies
78
CONFIG_RT_USING_SEMAPHORE=y
89
CONFIG_RT_USING_EVENT=y
910
CONFIG_RT_USING_MESSAGEQUEUE=y
1011
CONFIG_RT_USING_SIGNALS=y
11-
CONFIG_RT_USING_MUTEX=y
12+
CONFIG_RT_USING_MUTEX=y
13+
CONFIG_RT_USING_MAILBOX=y

examples/utest/testcases/kernel/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@ config UTEST_MUTEX_TC
3535
bool "mutex test"
3636
default n
3737

38+
config UTEST_MAILBOX_TC
39+
bool "mailbox test"
40+
default n
41+
3842
endmenu

examples/utest/testcases/kernel/SConscript

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if GetDepend(['UTEST_SIGNAL_TC']):
2929
if GetDepend(['UTEST_MUTEX_TC']):
3030
src += ['mutex_tc.c']
3131

32+
if GetDepend(['UTEST_MAILBOX_TC']):
33+
src += ['mailbox_tc.c']
34+
3235
CPPPATH = [cwd]
3336

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

0 commit comments

Comments
 (0)