You need to sign in or sign up before continuing.
提交 2af0fae6 编写于 作者: L liangshenglin1 提交者: Gitee

fix bug of compile ipc test cases failed

上级 35164627
......@@ -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.
先完成此消息的编辑!
想要评论请 注册