mirror of
https://gitee.com/openharmony/startup_init
synced 2025-03-03 01:56:22 +00:00
告警清理
Signed-off-by: limingkang <limingkang1@huawei.com> Change-Id: I9b5ffda7df62edc283ed0eb4e3a27c8a04a16789
This commit is contained in:
parent
497327c84b
commit
64d500834d
@ -270,7 +270,7 @@ FstabItem *FindFstabItemForPath(Fstab fstab, const char *path)
|
||||
{
|
||||
FstabItem *item = NULL;
|
||||
|
||||
if (path == NULL || *path == '\0' || *path != '/') {
|
||||
if (path == NULL || *path != '/') {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -743,7 +743,7 @@ STATIC_INLINE const char *CachedParameterCheck(CachedParameter *param)
|
||||
const char *CachedParameterGet(CachedHandle handle)
|
||||
{
|
||||
CachedParameter *param = (CachedParameter *)handle;
|
||||
PARAM_CHECK(param != NULL, return NULL, "Invalid handle %x", handle);
|
||||
PARAM_CHECK(param != NULL, return NULL, "Invalid handle");
|
||||
return CachedParameterCheck(param);
|
||||
}
|
||||
|
||||
|
@ -282,8 +282,8 @@ HWTEST_F(SysparaUnitTest, parameterTest0013, TestSize.Level0)
|
||||
EXPECT_EQ(GetUintParameter("test.int.get", 0), 0);
|
||||
EXPECT_EQ(GetIntParameter("test.uint.get", 0), TEST_VALUE);
|
||||
EXPECT_EQ(GetUintParameter("test.uint.get", 0), TEST_VALUE);
|
||||
EXPECT_EQ(GetIntParameter("test.int.default", 10), 10); //key not find,value = default
|
||||
EXPECT_EQ(GetUintParameter("test.uint.default", 10), 10); //key not find,value = default
|
||||
EXPECT_EQ(GetIntParameter("test.int.default", 10), 10); // key not find,value = default
|
||||
EXPECT_EQ(GetUintParameter("test.uint.default", 10), 10); // key not find,value = default
|
||||
EXPECT_EQ(IsValidParamValue(nullptr, 0), 0);
|
||||
EXPECT_EQ(IsValidParamValue("testvalue", strlen("testvalue") + 1), 1);
|
||||
EXPECT_EQ(StringToLL("0x11", &out), 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user