!206 修复单元测试用例中的编码规范问题

Merge pull request !206 from wenkaisong/master
This commit is contained in:
openharmony_ci 2023-06-02 02:01:15 +00:00 committed by Gitee
commit 3960d978b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -301,7 +301,7 @@ HWTEST_F(DslmTest, GetPkInfoListStr_case1, TestSize.Level0)
HWTEST_F(DslmTest, GetPkInfoListStr_case2, TestSize.Level0)
{
const char *udidStr = "device";
char *pkInfoListStr = NULL;
char *pkInfoListStr = nullptr;
MockMalloc mock;
@ -315,7 +315,7 @@ HWTEST_F(DslmTest, GetPkInfoListStr_case2, TestSize.Level0)
HWTEST_F(DslmTest, GetPkInfoListStr_case3, TestSize.Level0)
{
const char *udidStr = "device";
char *pkInfoListStr = NULL;
char *pkInfoListStr = nullptr;
MockStrcpy mock;
// mock the strcpy_s return a EINVAL
@ -328,7 +328,7 @@ HWTEST_F(DslmTest, GetPkInfoListStr_case3, TestSize.Level0)
HWTEST_F(DslmTest, GetPkInfoListStr_case4, TestSize.Level0)
{
const char *udidStr = "device";
char *pkInfoListStr = NULL;
char *pkInfoListStr = nullptr;
MockStrcpy mock;
// mock the strcpy_s return a EINVAL on the second call