提交 64d50083 编写于 作者: L limingkang

告警清理

Signed-off-by: Nlimingkang <limingkang1@huawei.com>
Change-Id: I9b5ffda7df62edc283ed0eb4e3a27c8a04a16789
上级 497327c8
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册