修复fuzzer用例

Signed-off-by: ImCaO <zhoushihui4@huawei.com>
This commit is contained in:
ImCaO 2024-09-14 20:10:17 +08:00
parent e973b768d5
commit 4995edfe48
No known key found for this signature in database
GPG Key ID: E7B267EBE9D31E0B

View File

@ -36,6 +36,7 @@ namespace OHOS {
{
AppServiceFwkInstaller appServiceFwk;
InstallParam installParam;
installParam.copyHapToInstallPath = false;
std::unordered_map<std::string, InnerBundleInfo> infos;
InnerBundleInfo innerBundleInfo;
innerBundleInfo.currentPackage_ = MODULE_NAME_TEST;
@ -45,8 +46,6 @@ namespace OHOS {
InnerBundleInfo newInfo;
appServiceFwk.CheckNeedUpdate(newInfo, oldInfo);
std::string hspPath = ", path: ";
InstallParam installParam;
installParam.copyHapToInstallPath = false;
appServiceFwk.ProcessBundleUpdateStatus(oldInfo, newInfo, VERSION_ONE_LIBRARY_ONE_PATH, installParam);
bool isReplace = true;
appServiceFwk.ProcessModuleUpdate(innerBundleInfo, oldInfo, hspPath, installParam);