diff --git a/services/common/include/hilog_tag_wrapper.h b/services/common/include/hilog_tag_wrapper.h index c87425eb8379b79758bfccfd06dfcb2a3e9f20a1..15f285de862d8858d71ed79ee5e64eb030919995 100644 --- a/services/common/include/hilog_tag_wrapper.h +++ b/services/common/include/hilog_tag_wrapper.h @@ -190,7 +190,7 @@ inline const char* GetDomainName6(AAFwkLogTag tag) inline std::string GetAbbreviatedFileName(const std::string& fileName) { - std::map abbreviatedFileNameMap { + static std::map abbreviatedFileNameMap { { "ability_manager_client", "AMC" }, { "app_running_manager", "ARM" }, { "ability_connect_manager", "ACM" }, diff --git a/test/unittest/ability_manager_service_first_test/BUILD.gn b/test/unittest/ability_manager_service_first_test/BUILD.gn index 73b7da4790cda653cf22dc64cfe256d011c5f742..6582a8da136f483a149793796244876de0a9bfad 100644 --- a/test/unittest/ability_manager_service_first_test/BUILD.gn +++ b/test/unittest/ability_manager_service_first_test/BUILD.gn @@ -58,7 +58,6 @@ ohos_unittest("ability_manager_service_first_test") { "${ability_runtime_native_path}/ability/native:auto_startup_callback", "${ability_runtime_services_path}/abilitymgr:abilityms", "${ability_runtime_services_path}/common:app_util", - "${ability_runtime_services_path}/common:perm_verification", "${ability_runtime_services_path}/common:task_handler_wrap", "${ability_runtime_test_path}/mock/services_abilitymgr_test/libs/aakit:aakit_mock", ] diff --git a/test/unittest/ability_manager_service_sixth_test/BUILD.gn b/test/unittest/ability_manager_service_sixth_test/BUILD.gn index 6f326eeea24ecb2fb8daab7ba1fc582fdf8d84bc..50533785b0d9cdd6f63d9c997ce6eab574c9ca43 100644 --- a/test/unittest/ability_manager_service_sixth_test/BUILD.gn +++ b/test/unittest/ability_manager_service_sixth_test/BUILD.gn @@ -73,7 +73,6 @@ ohos_unittest("ability_manager_service_sixth_test") { "${ability_runtime_services_path}/abilitymgr:wantagent_manager", "${ability_runtime_services_path}/common:app_util", "${ability_runtime_services_path}/common:event_report", - "${ability_runtime_services_path}/common:perm_verification", "${ability_runtime_services_path}/common:record_cost_time_util", "${ability_runtime_services_path}/common:task_handler_wrap", ]