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

!2708 【kernel_lite】【master】修改kernel_lite告警用例

Merge pull request !2708 from limeng/kernel_lite_20220321_02_master
......@@ -1894,7 +1894,7 @@ HWTEST_F(ActsNetTest, testInetNtopIpv4Abnormal, Function | MediumTest | Level2)
char rstBuff[INET_ADDRSTRLEN];
char expectStr[2][16] = {"255.255.255.255", "0.0.0.0"};
for (int i = 0; i < 2; i++) {
inputAddr.s_addr = (i == 0 ? -1 : 4294967296);
inputAddr.s_addr = in_addr_t(i == 0 ? -1 : 4294967296);
ret = inet_ntop(AF_INET, &inputAddr, rstBuff, sizeof(rstBuff));
ASSERT_TRUE(ret != NULL);
EXPECT_STREQ(expectStr[i], ret);
......
......@@ -46,9 +46,9 @@ uint64_t CheckStep(int value)
}
uint64_t state = *shared;
shmdt(shared);
return state;
}
return 0;
}
int CountPrimes(uint32_t maxNumber)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册