mirror of
https://gitee.com/openharmony/startup_init
synced 2025-03-04 18:47:46 +00:00
add bootchart
Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
parent
542c387cd6
commit
f8d59abc00
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user