未验证 提交 35c8fb3f 编写于 作者: O openharmony_ci 提交者: Gitee

!1345 FIX: 修改L2 init ut不通过问题

Merge pull request !1345 from cheng_jinsong/1008
......@@ -275,8 +275,13 @@ HWTEST_F(SysparaUnitTest, parameterTest0013, TestSize.Level0)
int ret = SetParameter(key1, value1);
EXPECT_EQ(ret, 0);
GetParameter_(nullptr, nullptr, nullptr, 0);
#if defined(__LITEOS_A__) || defined(__LITEOS_M__)
EXPECT_EQ(GetIntParameter(key1, 0), 101);
EXPECT_EQ(GetUintParameter(key1, 0), 101);
#else
EXPECT_EQ(GetIntParameter(key1, 0), 0);
EXPECT_EQ(GetUintParameter(key1, 0), 0);
#endif
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.
先完成此消息的编辑!
想要评论请 注册