From 9f8356336786381cd975382982ff2569a77278ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E?= Date: Wed, 7 Jul 2021 07:06:10 +0000 Subject: [PATCH] =?UTF-8?q?CI=E6=B5=8B=E8=AF=95=E5=8D=95=EF=BC=8C=E8=AF=B7?= =?UTF-8?q?=E5=8B=BF=E5=90=88=E5=85=A5=20###=20=E7=9B=B8=E5=85=B3=E7=9A=84?= =?UTF-8?q?Issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### 原因(目的、解决的问题等) ### 描述(做了什么,变更了什么) ### 测试用例(新增、改动、可能影响的功能) --- frameworks/bundle_lite/src/bundle_info.cpp | 39 +++++++--------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/frameworks/bundle_lite/src/bundle_info.cpp b/frameworks/bundle_lite/src/bundle_info.cpp index 33bb9ed..67b061e 100755 --- a/frameworks/bundle_lite/src/bundle_info.cpp +++ b/frameworks/bundle_lite/src/bundle_info.cpp @@ -13,33 +13,18 @@ * limitations under the License. */ -#include "bundle_info.h" - -#include "bundle_info_utils.h" -#include "securec.h" -#include "utils.h" - -void ClearBundleInfo(BundleInfo *bundleInfo) +#include + +int main() { - if (bundleInfo == nullptr) { - return; + int i,j; + for(i=0;i<8;i++) + { + for(j=0;j<8;j++) + if((i+j)%2==0) + printf("%c%c",219,219); + else printf(" "); + printf("\n"); } - AdapterFree(bundleInfo->bundleName); - AdapterFree(bundleInfo->versionName); - AdapterFree(bundleInfo->label); - AdapterFree(bundleInfo->bigIconPath); - AdapterFree(bundleInfo->codePath); - AdapterFree(bundleInfo->dataPath); - AdapterFree(bundleInfo->vendor); - OHOS::BundleInfoUtils::ClearModuleInfos(bundleInfo->moduleInfos, bundleInfo->numOfModule); - AdapterFree(bundleInfo->moduleInfos); - AdapterFree(bundleInfo->appId); -#ifdef OHOS_APPEXECFWK_BMS_BUNDLEMANAGER - OHOS::BundleInfoUtils::ClearAbilityInfos(bundleInfo->abilityInfos, bundleInfo->numOfAbility); - AdapterFree(bundleInfo->abilityInfos); -#else - AdapterFree(bundleInfo->smallIconPath); - ClearAbilityInfo(bundleInfo->abilityInfo); - AdapterFree(bundleInfo->abilityInfo); -#endif + return 0; } -- Gitee