Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
bcd1366b
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
bcd1366b
编写于
7月 08, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 08, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3740 【OpenHarmony开源贡献者计划2022】fix build warnings for suite 'ActsHuksHalFunctionTest'
Merge pull request !3740 from c01dface/dev1
上级
39f1909c
e4df0238
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
4 deletion
+12
-4
security_lite/huks/liteos_m_adapter/hks_exist_test.c
security_lite/huks/liteos_m_adapter/hks_exist_test.c
+12
-4
未找到文件。
security_lite/huks/liteos_m_adapter/hks_exist_test.c
浏览文件 @
bcd1366b
...
@@ -47,6 +47,7 @@ LITE_TEST_SUIT(security, securityData, HksExistTest);
...
@@ -47,6 +47,7 @@ LITE_TEST_SUIT(security, securityData, HksExistTest);
static
void
ExecHksInitialize
(
void
const
*
argument
)
static
void
ExecHksInitialize
(
void
const
*
argument
)
{
{
(
void
)
argument
;
LiteTestPrint
(
"HksInitialize Begin!
\n
"
);
LiteTestPrint
(
"HksInitialize Begin!
\n
"
);
TEST_ASSERT_TRUE
(
HksInitialize
()
==
0
);
TEST_ASSERT_TRUE
(
HksInitialize
()
==
0
);
LiteTestPrint
(
"HksInitialize End!
\n
"
);
LiteTestPrint
(
"HksInitialize End!
\n
"
);
...
@@ -55,6 +56,7 @@ static void ExecHksInitialize(void const *argument)
...
@@ -55,6 +56,7 @@ static void ExecHksInitialize(void const *argument)
static
void
ExecHksExistTest001
(
void
const
*
argument
)
static
void
ExecHksExistTest001
(
void
const
*
argument
)
{
{
(
void
)
argument
;
int32_t
ret
;
int32_t
ret
;
LiteTestPrint
(
"HksExistTest001 Begin!
\n
"
);
LiteTestPrint
(
"HksExistTest001 Begin!
\n
"
);
struct
HksBlob
*
keyAlias
=
NULL
;
struct
HksBlob
*
keyAlias
=
NULL
;
...
@@ -86,7 +88,7 @@ static void ExecHksExistTest001(void const *argument)
...
@@ -86,7 +88,7 @@ static void ExecHksExistTest001(void const *argument)
* @tc.setup: define a setup for test suit, format:"CalcMultiTest + SetUp"
* @tc.setup: define a setup for test suit, format:"CalcMultiTest + SetUp"
* @return: true——setup success
* @return: true——setup success
*/
*/
static
BOOL
HksExistTestSetUp
()
static
BOOL
HksExistTestSetUp
(
void
)
{
{
LiteTestPrint
(
"setup
\n
"
);
LiteTestPrint
(
"setup
\n
"
);
IoTWatchDogDisable
();
IoTWatchDogDisable
();
...
@@ -101,7 +103,10 @@ static BOOL HksExistTestSetUp()
...
@@ -101,7 +103,10 @@ static BOOL HksExistTestSetUp()
attr
.
stack_size
=
TEST_TASK_STACK_SIZE
;
attr
.
stack_size
=
TEST_TASK_STACK_SIZE
;
attr
.
priority
=
g_setPriority
;
attr
.
priority
=
g_setPriority
;
id
=
osThreadNew
((
osThreadFunc_t
)
ExecHksInitialize
,
NULL
,
&
attr
);
id
=
osThreadNew
((
osThreadFunc_t
)
ExecHksInitialize
,
NULL
,
&
attr
);
sleep
(
WAIT_TO_TEST_DONE
);
if
(
id
==
NULL
)
{
printf
(
"Failed to create thread ExecHksInitialize!
\n
"
);
}
osDelay
(
WAIT_TO_TEST_DONE
);
LiteTestPrint
(
"HksGenerateKeyTestSetUp End2!
\n
"
);
LiteTestPrint
(
"HksGenerateKeyTestSetUp End2!
\n
"
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -110,7 +115,7 @@ static BOOL HksExistTestSetUp()
...
@@ -110,7 +115,7 @@ static BOOL HksExistTestSetUp()
* @tc.teardown: define a setup for test suit, format:"CalcMultiTest + TearDown"
* @tc.teardown: define a setup for test suit, format:"CalcMultiTest + TearDown"
* @return: true——teardown success
* @return: true——teardown success
*/
*/
static
BOOL
HksExistTestTearDown
()
static
BOOL
HksExistTestTearDown
(
void
)
{
{
LiteTestPrint
(
"tearDown
\n
"
);
LiteTestPrint
(
"tearDown
\n
"
);
IoTWatchDogEnable
();
IoTWatchDogEnable
();
...
@@ -135,7 +140,10 @@ LITE_TEST_CASE(HksExistTest, HksExistTest001, Level1)
...
@@ -135,7 +140,10 @@ LITE_TEST_CASE(HksExistTest, HksExistTest001, Level1)
attr
.
stack_size
=
TEST_TASK_STACK_SIZE
;
attr
.
stack_size
=
TEST_TASK_STACK_SIZE
;
attr
.
priority
=
g_setPriority
;
attr
.
priority
=
g_setPriority
;
id
=
osThreadNew
((
osThreadFunc_t
)
ExecHksExistTest001
,
NULL
,
&
attr
);
id
=
osThreadNew
((
osThreadFunc_t
)
ExecHksExistTest001
,
NULL
,
&
attr
);
sleep
(
WAIT_TO_TEST_DONE
);
if
(
id
==
NULL
)
{
printf
(
"Failed to create thread ExecHksExistTest001!
\n
"
);
}
osDelay
(
WAIT_TO_TEST_DONE
);
LiteTestPrint
(
"HksExistTest001 End2!
\n
"
);
LiteTestPrint
(
"HksExistTest001 End2!
\n
"
);
}
}
RUN_TEST_SUITE
(
HksExistTest
);
RUN_TEST_SUITE
(
HksExistTest
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录