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

!2695 【kernel_lite】【master】修改kernel_lite用例告警问题

Merge pull request !2695 from limeng/kernel_lite_20220321_01_master
......@@ -231,7 +231,7 @@ HWTEST_F(FileSystemTest, testFallocate, Function | MediumTest | Level2)
LOG("> vfsBufNew.f_bfree = %lu", vfsBufNew.f_bfree);
int ret = strcmp(TOP_DIR, "sdcard");
if(ret = 0) {
if(ret == 0) {
int bNumExpect = file_size / vfsBufNew.f_bsize;
int bNum = vfsBufOld.f_bfree - vfsBufNew.f_bfree;
LOG("> bNumExpect = %d", bNumExpect);
......@@ -277,7 +277,7 @@ HWTEST_F(FileSystemTest, testFallocateSmallSize, Function | MediumTest | Level2)
LOG("> vfsBufNew.f_bfree = %lu", vfsBufNew.f_bfree);
int ret = strcmp(TOP_DIR, "sdcard");
if (ret = 0) {
if (ret == 0) {
int bNumExpect = file_size / vfsBufNew.f_bsize;
int bNum = vfsBufOld.f_bfree - vfsBufNew.f_bfree;
LOG("> bNumExpect = %d", bNumExpect);
......
......@@ -1235,7 +1235,7 @@ HWTEST_F(ActsNetTest, testIoctlIfhwAddr, Function | MediumTest | Level2)
ASSERT_EQ(0, ret) << "ioctl fail[SIOCGIFCONF], errinfo[" << strerror(errno) << "]";
char rst1[18];
char rst2[18];
char* macPtr = nullptr;
struct ifreq ifrTmp = {0};
struct sockaddr_in *addr = nullptr;
......
......@@ -93,7 +93,7 @@ HWTEST_F(PidTest, testOrphanProcess, Function | MediumTest | Level1)
if (pPid != 1) {
LOG("getppid orphaned process fail, expect:1, but get:%d", pPid);
// transfer result to main process
shmAddr[0] == retFail;
shmAddr[0] = retFail;
}
shmAddr[1] =2;
LOG("child child exit %d", shmAddr[1]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册