Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
2d31aed2
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
大约 1 年 前同步成功
通知
452
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2d31aed2
编写于
7月 01, 2021
作者:
W
wjj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: 支持互斥锁的强壮性属性,测试用例
支持互斥锁强壮性标志,添加加解锁函数对robust链表的处理
上级
abbeca1c
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
50 addition
and
16 deletion
+50
-16
testsuites/unittest/posix/pthread/BUILD.gn
testsuites/unittest/posix/pthread/BUILD.gn
+1
-1
testsuites/unittest/posix/pthread/It_posix_pthread.h
testsuites/unittest/posix/pthread/It_posix_pthread.h
+1
-1
testsuites/unittest/posix/pthread/full/It_posix_pthread_203.cpp
...ites/unittest/posix/pthread/full/It_posix_pthread_203.cpp
+0
-0
testsuites/unittest/posix/pthread/posix_pthread_test.cpp
testsuites/unittest/posix/pthread/posix_pthread_test.cpp
+11
-11
testsuites/unittest/process/mutex/BUILD.gn
testsuites/unittest/process/mutex/BUILD.gn
+4
-3
testsuites/unittest/process/mutex/full/pthread_mutex_test_023.cpp
...es/unittest/process/mutex/full/pthread_mutex_test_023.cpp
+0
-0
testsuites/unittest/process/mutex/full/pthread_mutex_test_024.cpp
...es/unittest/process/mutex/full/pthread_mutex_test_024.cpp
+0
-0
testsuites/unittest/process/mutex/full/pthread_mutex_test_025.cpp
...es/unittest/process/mutex/full/pthread_mutex_test_025.cpp
+0
-0
testsuites/unittest/process/mutex/process_mutex_test.cpp
testsuites/unittest/process/mutex/process_mutex_test.cpp
+33
-0
未找到文件。
testsuites/unittest/posix/pthread/BUILD.gn
浏览文件 @
2d31aed2
...
...
@@ -56,7 +56,6 @@ sources_smoke = [
"smoke/It_posix_pthread_020.cpp",
"smoke/It_posix_pthread_021.cpp",
"smoke/It_posix_pthread_022.cpp",
"smoke/It_posix_pthread_203.cpp",
]
sources_full = [
...
...
@@ -149,6 +148,7 @@ sources_full = [
"full/It_posix_pthread_193.cpp",
"full/It_posix_pthread_194.cpp",
"full/It_posix_pthread_200.cpp",
"full/It_posix_pthread_203.cpp",
"full/It_posix_pthread_204.cpp",
"full/It_posix_pthread_205.cpp",
"full/It_posix_pthread_206.cpp",
...
...
testsuites/unittest/posix/pthread/It_posix_pthread.h
浏览文件 @
2d31aed2
...
...
@@ -253,7 +253,6 @@ VOID ItPosixPthread019(VOID);
VOID
ItPosixPthread020
(
VOID
);
VOID
ItPosixPthread021
(
VOID
);
VOID
ItPosixPthread022
(
VOID
);
VOID
ItPosixPthread203
(
VOID
);
#endif
#if defined(LOSCFG_USER_TEST_FULL)
...
...
@@ -371,6 +370,7 @@ VOID ItPosixPthread194(VOID);
VOID
IT_POSIX_PTHREAD_197
(
VOID
);
VOID
IT_POSIX_PTHREAD_198
(
VOID
);
VOID
ItPosixPthread200
(
VOID
);
VOID
ItPosixPthread203
(
VOID
);
VOID
ItPosixPthread204
(
VOID
);
VOID
ItPosixPthread205
(
VOID
);
VOID
ItPosixPthread206
(
VOID
);
...
...
testsuites/unittest/posix/pthread/
smoke
/It_posix_pthread_203.cpp
→
testsuites/unittest/posix/pthread/
full
/It_posix_pthread_203.cpp
浏览文件 @
2d31aed2
文件已移动
testsuites/unittest/posix/pthread/posix_pthread_test.cpp
浏览文件 @
2d31aed2
...
...
@@ -327,17 +327,6 @@ HWTEST_F(PosixPthreadTest, ItPosixPthread022, TestSize.Level0)
ItPosixPthread022
();
// pthread_cancel
}
/* *
* @tc.name: IT_POSIX_PTHREAD_203
* @tc.desc: function for pthread concurrency
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
PosixPthreadTest
,
ItPosixPthread203
,
TestSize
.
Level0
)
{
ItPosixPthread203
();
}
#endif
#if defined(LOSCFG_USER_TEST_FULL)
...
...
@@ -1267,6 +1256,17 @@ HWTEST_F(PosixPthreadTest, ItPosixPthread200, TestSize.Level0)
ItPosixPthread200
();
}
/* *
* @tc.name: IT_POSIX_PTHREAD_203
* @tc.desc: function for pthread concurrency
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
PosixPthreadTest
,
ItPosixPthread203
,
TestSize
.
Level0
)
{
ItPosixPthread203
();
}
/**
* @tc.name: IT_POSIX_PTHREAD_204
* @tc.desc: function for PosixPthreadTest
...
...
testsuites/unittest/process/mutex/BUILD.gn
浏览文件 @
2d31aed2
...
...
@@ -63,13 +63,14 @@ sources_smoke = [
"smoke/pthread_mutex_test_020.cpp",
"smoke/pthread_mutex_test_021.cpp",
"smoke/pthread_mutex_test_022.cpp",
"smoke/pthread_mutex_test_023.cpp",
"smoke/pthread_mutex_test_024.cpp",
"smoke/pthread_mutex_test_025.cpp",
]
sources_full = [
"full/pthread_mutex_test_018.cpp",
"full/pthread_mutex_test_023.cpp",
"full/pthread_mutex_test_024.cpp",
"full/pthread_mutex_test_025.cpp",
]
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
...
...
testsuites/unittest/process/mutex/
smoke
/pthread_mutex_test_023.cpp
→
testsuites/unittest/process/mutex/
full
/pthread_mutex_test_023.cpp
浏览文件 @
2d31aed2
文件已移动
testsuites/unittest/process/mutex/
smoke
/pthread_mutex_test_024.cpp
→
testsuites/unittest/process/mutex/
full
/pthread_mutex_test_024.cpp
浏览文件 @
2d31aed2
文件已移动
testsuites/unittest/process/mutex/
smoke
/pthread_mutex_test_025.cpp
→
testsuites/unittest/process/mutex/
full
/pthread_mutex_test_025.cpp
浏览文件 @
2d31aed2
文件已移动
testsuites/unittest/process/mutex/process_mutex_test.cpp
浏览文件 @
2d31aed2
...
...
@@ -297,5 +297,38 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex018, TestSize.Level0)
ItTestPthreadMutex018
();
}
#endif
/* *
* @tc.name: it_test_pthread_mutex_023
* @tc.desc: function for test mutexattr robust
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F
(
ProcessMutexTest
,
ItTestPthreadMutex023
,
TestSize
.
Level0
)
{
ItTestPthreadMutex023
();
}
/* *
* @tc.name: it_test_pthread_mutex_024
* @tc.desc: function for test mutexattr robust:error return value
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F
(
ProcessMutexTest
,
ItTestPthreadMutex024
,
TestSize
.
Level0
)
{
ItTestPthreadMutex024
();
}
/* *
* @tc.name: it_test_pthread_mutex_025
* @tc.desc: test mutexattr robust:robustness product deadlock is not set
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F
(
ProcessMutexTest
,
ItTestPthreadMutex025
,
TestSize
.
Level0
)
{
ItTestPthreadMutex025
();
}
#endif
}
// namespace OHOS
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录