From 243212241d1f6d64a29de30a900a0840cbe30a39 Mon Sep 17 00:00:00 2001 From: huawei <343976363@qq.com> Date: Sat, 9 Oct 2021 14:43:44 +0800 Subject: [PATCH] bugfix for tests Signed-off-by: liuxiaopei --- .../system_ability_manager_posix/src/IUnknownTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distributed_schedule_lite/system_ability_manager_posix/src/IUnknownTest.cpp b/distributed_schedule_lite/system_ability_manager_posix/src/IUnknownTest.cpp index 2a6207181..230beadbc 100755 --- a/distributed_schedule_lite/system_ability_manager_posix/src/IUnknownTest.cpp +++ b/distributed_schedule_lite/system_ability_manager_posix/src/IUnknownTest.cpp @@ -194,6 +194,8 @@ HWTEST_F(IUnknownTest, testQueryInterface0010, Function | MediumTest | Level2) { int resultRelease = iUnknown->Release(iUnknown); ASSERT_EQ(1, resultAdd - resultRelease); + (void)iUnknown->Release(iUnknown); + SAMGR_GetInstance()->UnregisterFeatureApi(SERVICE_NAME, FEATURE_NAME); } -- GitLab