diff --git a/aafwk_lite/ability_posix/src/AbilityMgrTest.cpp b/aafwk_lite/ability_posix/src/AbilityMgrTest.cpp index 47f98ac7868bf0265502edc540d726e80e8984dd..ae19a276860f39fb4748cb94eca455c457e1e1b7 100755 --- a/aafwk_lite/ability_posix/src/AbilityMgrTest.cpp +++ b/aafwk_lite/ability_posix/src/AbilityMgrTest.cpp @@ -941,7 +941,7 @@ HWTEST_F(AbilityMgrTest, testPostTask, Function | MediumTest | Level1) string hapPath = g_testPath + "testnative_hispark_taurus_liteos.hap"; #endif AbilityEventHandler eventHandler1; - auto task = [this, hapPath]{ + auto task = [hapPath]{ sem_init(&g_sem, 0, 0); InstallParam installParam = { .installLocation = 1, .keepData = false }; bool installResult = Install(hapPath.c_str(), &installParam, TestBundleStateCallback);