未验证 提交 411eac61 编写于 作者: O openharmony_ci 提交者: Gitee

!1751 挑单monthly:告警清理

Merge pull request !1751 from 李明康/cherry-pick-1675847949
......@@ -267,7 +267,7 @@ FstabItem *FindFstabItemForPath(Fstab fstab, const char *path)
{
FstabItem *item = NULL;
if (path == NULL || *path == '\0' || *path != '/') {
if (path == NULL || *path != '/') {
return NULL;
}
......
......@@ -451,7 +451,7 @@ static 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.
先完成此消息的编辑!
想要评论请 注册