提交 80339a1a 编写于 作者: L liubb_0516

add ipc gtest testcase

Signed-off-by: Nliubb_0516 <liubeibei8@huawei.com>
上级 bb83984e
......@@ -34,7 +34,7 @@ unittest("ipc_client") {
"$IPC_CORE_ROOT/ipc/include",
]
sources = [ "$SUBSYSTEM_DIR/client/client.cpp" ]
sources = [ "IpcClientTest.cpp" ]
deps =
[ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ]
......
......@@ -33,7 +33,7 @@ unittest("samgr") {
"$IPC_CORE_ROOT/ipc/include",
]
sources = [ "samgr.cpp" ]
sources = [ "IpcSamgrTest.cpp" ]
deps =
[ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ]
......
......@@ -39,6 +39,9 @@ int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid)
}
SvcInfo* node = (SvcInfo *)calloc(1, sizeof(SvcInfo));
if (node == nullptr) {
return ERR_FAILED;
}
node->saId = saId;
node->sid = sid;
UtilsListAdd(g_saList, &node->list);
......
......@@ -33,7 +33,7 @@ unittest("ipc_server") {
"$IPC_CORE_ROOT/ipc/include",
]
sources = [ "server.cpp" ]
sources = [ "IpcServerTest.cpp" ]
deps =
[ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册