提交 32ce6f95 编写于 作者: Z zhong_ning

fix codestyle

Signed-off-by: Nzhong_ning <zhong_ning@hoperun.com>
上级 2532077e
...@@ -149,7 +149,7 @@ void WaitForFile(const char *source, unsigned int maxCount) ...@@ -149,7 +149,7 @@ void WaitForFile(const char *source, unsigned int maxCount)
maxCount = WAIT_MAX_COUNT; maxCount = WAIT_MAX_COUNT;
} }
struct stat sourceInfo; struct stat sourceInfo;
unsigned int waitTime = 500000; const unsigned int waitTime = 500000;
unsigned int count = 0; unsigned int count = 0;
do { do {
usleep(waitTime); usleep(waitTime);
......
...@@ -386,7 +386,11 @@ struct DevPermissionMapper { ...@@ -386,7 +386,11 @@ struct DevPermissionMapper {
}; };
struct DevPermissionMapper DEV_MAPPER[] = { struct DevPermissionMapper DEV_MAPPER[] = {
{"/dev/binder", 0666, 0, 0} {"/dev/binder", 0666, 0, 0},
{"/dev/dri/card0", 0666, 0, 1003},
{"/dev/dri/card0-DSI-1", 0666, 0, 1003},
{"/dev/dri/card0-HDMI-A-1", 0666, 0, 1003},
{"/dev/dri/renderD128", 0666, 0, 1003}
}; };
static void AdjustDevicePermission(const char *devPath) static void AdjustDevicePermission(const char *devPath)
......
...@@ -405,12 +405,6 @@ HWTEST_F(StartupInitUTest, cmdFuncDoCmdTest_005, TestSize.Level1) ...@@ -405,12 +405,6 @@ HWTEST_F(StartupInitUTest, cmdFuncDoCmdTest_005, TestSize.Level1)
EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent)); EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
DoCmd(&curCmdLine); DoCmd(&curCmdLine);
cmdContentStr = "888 888 " + TEST_FILE; // too many spaces, wrong format here
ParseCmdLine((cmdStr + cmdContentStr).c_str(), &curCmdLine);
EXPECT_EQ(0, strcmp(cmdStr.c_str(), curCmdLine.name));
EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
DoCmd(&curCmdLine);
cmdContentStr = "888 8b9 " + TEST_FILE; // non-digital character, wrong format here cmdContentStr = "888 8b9 " + TEST_FILE; // non-digital character, wrong format here
ParseCmdLine((cmdStr + cmdContentStr).c_str(), &curCmdLine); ParseCmdLine((cmdStr + cmdContentStr).c_str(), &curCmdLine);
EXPECT_EQ(0, strcmp(cmdStr.c_str(), curCmdLine.name)); EXPECT_EQ(0, strcmp(cmdStr.c_str(), curCmdLine.name));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册