mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 07:50:24 +00:00
!12 [Lightweight PR]: fix bug of compile ipc test cases failed
Merge pull request !12 from liangshenglin1/N/A
This commit is contained in:
commit
589bde9f29
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user