提交 216ace35 编写于 作者: S shilei 提交者: shilei91

fixed 06e5c7f5 from https://gitee.com/shilei91/xts_acts/pulls/6663

add
Signed-off-by: Nshilei <shilei91@huawei.com>
Change-Id: Ia0a38346609e92f5308841f20f56d8cdcea104e5
上级 cde557ef
...@@ -84,6 +84,7 @@ LITE_TEST_CASE(BundleMgrTestSuite, testClearAbilityInfoIllegal, Function | Mediu ...@@ -84,6 +84,7 @@ LITE_TEST_CASE(BundleMgrTestSuite, testClearAbilityInfoIllegal, Function | Mediu
TEST_ASSERT_EQUAL(err, EOK); TEST_ASSERT_EQUAL(err, EOK);
ClearAbilityInfo(NULL); ClearAbilityInfo(NULL);
TEST_ASSERT_EQUAL_STRING(abilityInfo.bundleName, name); TEST_ASSERT_EQUAL_STRING(abilityInfo.bundleName, name);
free(abilityInfo.bundleName);
printf("------end testClearAbilityInfoIllegal------\n"); printf("------end testClearAbilityInfoIllegal------\n");
} }
...@@ -129,6 +130,7 @@ LITE_TEST_CASE(BundleMgrTestSuite, testClearBundleInfoIllegal, Function | Medium ...@@ -129,6 +130,7 @@ LITE_TEST_CASE(BundleMgrTestSuite, testClearBundleInfoIllegal, Function | Medium
TEST_ASSERT_EQUAL(err, EOK); TEST_ASSERT_EQUAL(err, EOK);
ClearBundleInfo(NULL); ClearBundleInfo(NULL);
TEST_ASSERT_EQUAL_STRING(bundleInfo.bundleName, name); TEST_ASSERT_EQUAL_STRING(bundleInfo.bundleName, name);
free(bundleInfo.bundleName);
printf("------end testClearBundleInfoIllegal------\n"); printf("------end testClearBundleInfoIllegal------\n");
} }
...@@ -174,6 +176,7 @@ LITE_TEST_CASE(BundleMgrTestSuite, testClearModuleInfoIllegal, Function | Medium ...@@ -174,6 +176,7 @@ LITE_TEST_CASE(BundleMgrTestSuite, testClearModuleInfoIllegal, Function | Medium
TEST_ASSERT_EQUAL(err, EOK); TEST_ASSERT_EQUAL(err, EOK);
ClearModuleInfo(NULL); ClearModuleInfo(NULL);
TEST_ASSERT_EQUAL_STRING(moduleInfo.moduleName, name); TEST_ASSERT_EQUAL_STRING(moduleInfo.moduleName, name);
free(moduleInfo.moduleName);
printf("------end testClearModuleInfoIllegal------\n"); printf("------end testClearModuleInfoIllegal------\n");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册