提交 589bde9f 编写于 作者: O openharmony_ci 提交者: Gitee

!12 [Lightweight PR]: fix bug of compile ipc test cases failed

Merge pull request !12 from liangshenglin1/N/A
......@@ -16,7 +16,7 @@
#ifndef OHOS_IPC_TEST_SERVICE_COMMAND_H
#define OHOS_IPC_TEST_SERVICE_COMMAND_H
enum class TestCommand : int {
enum TestCommand {
TEST_CMD_NONE = 0,
TEST_CMD_SYNC_TRANS = 1,
TEST_CMD_ASYNC_TRANS = 2,
......
......@@ -45,7 +45,7 @@ int main(int argc, char *argv[])
int result = 0;
TestCommand commandId = TestCommand::TEST_CMD_SYNC_TRANS;
if (argc > 1) {
commandId = { atoi(argv[1]) };
commandId = TestCommand(atoi(argv[1]));
} else {
ZLOGE(LABEL, "unknown command");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册