提交 f8d59abc 编写于 作者: X xionglei6

add bootchart

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 542c387c
......@@ -297,7 +297,7 @@ int MountOneItem(FstabItem *item)
mountFlags = GetMountFlags(item->mountOptions, fsSpecificData, sizeof(fsSpecificData));
if (!IsSupportedFilesystem(item->fsType)) {
BEGET_LOGE("Unsupported file system \" %s \"", item->fsType);
return -1;
return 0;
}
if (FM_MANAGER_WAIT_ENABLED(item->fsManagerFlags)) {
WaitForFile(item->deviceName, WAIT_MAX_SECOND);
......
......@@ -81,9 +81,8 @@ static int RBMiscReadUpdaterMessage(const char *path, struct RBMiscUpdateMessage
INIT_ERROR_CHECK(readLen > 0, ret = -1, "Failed to read misc for reboot");
} else {
ret = -1;
INIT_LOGE("Failed to open %s", path);
INIT_LOGE("Failed to open %s errno %d", path, errno);
}
return ret;
}
......
......@@ -35,10 +35,11 @@ public:
};
int g_cmdExecId = 0;
void TestCmdExecutor(int id, const char *name, int argc, const char **argv)
int TestCmdExecutor(int id, const char *name, int argc, const char **argv)
{
printf("TestCmdExecutor id %d, name %s \n", id, name);
g_cmdExecId = id;
return 0;
}
HWTEST_F(PluginUnitTest, PluginAddCmd, TestSize.Level1)
......@@ -100,7 +101,7 @@ HWTEST_F(PluginUnitTest, PluginInstallTest, TestSize.Level1)
pluginInterface->pluginRegister(moduleName,
"/home/axw/init_ut/etc/init/plugin_param_test.cfg",
PluginTestInit, PluginTestExit);
PluginInstall(moduleName);
PluginInstall(moduleName, NULL);
PluginUninstall(moduleName);
}
} // namespace init_ut
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册