Merge pull request !1063 from 师皓杰/master
This commit is contained in:
openharmony_ci 2024-08-30 09:22:52 +00:00 committed by Gitee
commit 57ab08923b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 10 additions and 0 deletions

View File

@ -62,6 +62,9 @@ config("distributed_sched_config") {
if (dmsfwk_mmi_listener) {
defines += [ "SUPPORT_MULTIMODALINPUT_SERVICE" ]
}
if (use_libfuzzer || use_clang_coverage) {
defines += [ "TEST_COVERAGE" ]
}
}
ohos_shared_library("distributedschedsvr") {

View File

@ -1135,6 +1135,9 @@ int32_t DistributedSchedService::DealDSchedEventResult(const OHOS::AAFwk::Want&
bool DistributedSchedService::GetIsFreeInstall(int32_t missionId)
{
if (dschedContinuation_ == nullptr) {
return false;
}
return dschedContinuation_->IsFreeInstall(missionId);
}

View File

@ -71,7 +71,9 @@ int32_t DSchedAllConnectManager::UninitAllConnectManager()
if (ret != ERR_OK) {
HILOGE("Unregist lifecycle callback fail, ret %{public}d.", ret);
}
#ifndef TEST_COVERAGE
dlclose(dllHandle_);
#endif
dllHandle_ = nullptr;
allConnectMgrApi_ = {
.ServiceCollaborationManager_PublishServiceState = nullptr,
@ -127,7 +129,9 @@ int32_t DSchedAllConnectManager::GetServiceCollaborationManagerProxy()
if (ret != ERR_OK) {
HILOGE("Get remote dms interactive adapter proxy fail, dlclose handle.");
#ifndef TEST_COVERAGE
dlclose(dllHandle_);
#endif
dllHandle_ = nullptr;
}
return ret;