From 188b9067cee7d5ef7a98a1a94a59b11c887a45f7 Mon Sep 17 00:00:00 2001 From: liubb_0516 Date: Mon, 9 May 2022 10:37:25 +0800 Subject: [PATCH] modify samgr testcase Signed-off-by: liubb_0516 --- aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp | 2 +- .../system_ability_manager_posix/src/LiteIPCClientTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp b/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp index 81d1fc8ae..02e3d1210 100755 --- a/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp +++ b/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp @@ -94,7 +94,7 @@ static void OnAbilityConnectDone(ElementName *elementName, SvcIdentity *serviceS // send and getReply IpcIo reply = {nullptr}; uintptr_t ptr = 0; - Transact(NULL, *serviceSid, 0, &request, &reply, LITEIPC_FLAG_DEFAULT, &ptr); + SendRequest(*serviceSid, 0, &request, &reply, LITEIPC_FLAG_DEFAULT, &ptr); ReadInt32(&reply, &g_errorCode); if (g_errorCode != 0) { printf("execute add method, result is %d\n", g_errorCode); diff --git a/distributed_schedule_lite/system_ability_manager_posix/src/LiteIPCClientTest.cpp b/distributed_schedule_lite/system_ability_manager_posix/src/LiteIPCClientTest.cpp index e657aa114..af7acdf8d 100755 --- a/distributed_schedule_lite/system_ability_manager_posix/src/LiteIPCClientTest.cpp +++ b/distributed_schedule_lite/system_ability_manager_posix/src/LiteIPCClientTest.cpp @@ -153,7 +153,7 @@ HWTEST_F(LiteIPCClientTest, testIPCClient0050, Function | MediumTest | Level2) int funcId = 0; int result = remoteApi->Invoke(remoteApi, funcId, nullptr, data2, CurrentCallback); printf("[hcpptest]result is: %d \n", result); - ASSERT_EQ(result, EC_INVALID); + ASSERT_EQ(result, EC_SUCCESS); ReleaseIUnknown((IUnknown *)remoteApi); }; -- GitLab