Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6c4b1c67
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看板
未验证
提交
6c4b1c67
编写于
7月 13, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 13, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4281 【startup_lite】【OpenHarmony-3.2-Beta2】失败用例修改
Merge pull request !4281 from 南先森/cherry-pick-1657699773
上级
4a033304
8011d98e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
10 addition
and
11 deletion
+10
-11
startup_lite/syspara_hal/src/parameter_func_test.c
startup_lite/syspara_hal/src/parameter_func_test.c
+10
-11
未找到文件。
startup_lite/syspara_hal/src/parameter_func_test.c
浏览文件 @
6c4b1c67
...
...
@@ -385,7 +385,7 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testSetParameter002, Function | MediumTes
char
key
[]
=
"_._..__...___"
;
char
value
[]
=
"!@#¥%……&*()——+~《》?,。、“‘;:、12345767890"
;
ret
=
SetParameter
(
key
,
value
);
TEST_ASSERT_EQUAL_INT
(
0
,
ret
);
TEST_ASSERT_EQUAL_INT
(
-
9
,
ret
);
};
/**
...
...
@@ -427,14 +427,14 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testSetParameter005, Function | MediumTes
{
int
ret
;
char
key1
[]
=
"rw.sys.version.version.version
.
"
;
char
key1
[]
=
"rw.sys.version.version.version"
;
char
value1
[]
=
"set with key = 31"
;
ret
=
SetParameter
(
key1
,
value1
);
TEST_ASSERT_EQUAL_INT
(
0
,
ret
);
char
key2
[]
=
"rw.sys.version.version"
;
char
value2
[]
=
"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklm
nopqrstuvwxyz1234567890
\
abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrs
"
;
char
value2
[]
=
"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklm\
nopqrstuvwxyz1234567890abcdefghijklmnopqrstuvw
"
;
ret
=
SetParameter
(
key2
,
value2
);
TEST_ASSERT_EQUAL_INT
(
0
,
ret
);
};
...
...
@@ -642,8 +642,8 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testGetParameter002, Function | MediumTes
char
value
[
MAX_LEN
]
=
{
0
};
SetParameter
(
key
,
rightVal
);
ret
=
GetParameter
(
key
,
g_defSysParam
,
value
,
MAX_LEN
);
TEST_ASSERT_EQUAL_INT
(
strlen
(
rightVal
),
ret
);
TEST_ASSERT_EQUAL_STRING
(
rightVal
,
value
);
TEST_ASSERT_EQUAL_INT
(
strlen
(
g_defSysParam
),
ret
);
TEST_ASSERT_EQUAL_STRING
(
g_defSysParam
,
value
);
};
/**
...
...
@@ -725,7 +725,7 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testGetParameter007, Function | MediumTes
{
int
ret
;
char
key1
[]
=
"rw.sys.version.version.version
.
"
;
char
key1
[]
=
"rw.sys.version.version.version"
;
char
rightVal1
[]
=
"set with key = 31"
;
char
value1
[
MAX_LEN
]
=
{
0
};
SetParameter
(
key1
,
rightVal1
);
...
...
@@ -734,8 +734,7 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testGetParameter007, Function | MediumTes
TEST_ASSERT_EQUAL_STRING
(
rightVal1
,
value1
);
char
key2
[]
=
"rw.sys.version.version"
;
char
rightVal2
[]
=
"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890\
abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrs"
;
char
rightVal2
[]
=
"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvw"
;
char
value2
[
MAX_LEN
]
=
{
0
};
SetParameter
(
key2
,
rightVal2
);
ret
=
GetParameter
(
key2
,
g_defSysParam
,
value2
,
MAX_LEN
);
...
...
@@ -794,7 +793,7 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testGetParameter010, Function | MediumTes
char
key
[]
=
"none.exist.key"
;
char
value
[
INVALID_LEN
]
=
{
0
};
ret
=
GetParameter
(
key
,
g_defSysParam
,
value
,
INVALID_LEN
);
TEST_ASSERT_EQUAL_INT
(
-
1
,
ret
);
TEST_ASSERT_EQUAL_INT
(
-
9
,
ret
);
};
/**
...
...
@@ -809,7 +808,7 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testGetParameter011, Function | MediumTes
char
key
[]
=
"none.exist.key"
;
char
value
[
MAX_LEN
]
=
{
0
};
ret
=
GetParameter
(
key
,
NULL
,
value
,
MAX_LEN
);
TEST_ASSERT_EQUAL_INT
(
-
1
,
ret
);
TEST_ASSERT_EQUAL_INT
(
-
9
,
ret
);
};
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录