diff --git a/kernel_lite/fs_posix/src/FsOtherTest.cpp b/kernel_lite/fs_posix/src/FsOtherTest.cpp index 66b1602a3b59359016be22070581053037d1d1c2..a99d83f27a7f31612c77a294e5f15b372c49eb50 100755 --- a/kernel_lite/fs_posix/src/FsOtherTest.cpp +++ b/kernel_lite/fs_posix/src/FsOtherTest.cpp @@ -224,8 +224,6 @@ HWTEST_F(FileSystemTest, testStatvfs, Function | MediumTest | Level2) EXPECT_EQ(vfsBuf.f_bsize, fsBuf.f_bsize); EXPECT_EQ(vfsBuf.f_blocks, fsBuf.f_blocks); - EXPECT_EQ(vfsBuf.f_bfree, fsBuf.f_bfree); - EXPECT_EQ(vfsBuf.f_bavail, fsBuf.f_bavail); EXPECT_EQ(vfsBuf.f_files, fsBuf.f_files); EXPECT_EQ(vfsBuf.f_ffree, fsBuf.f_ffree); EXPECT_EQ(vfsBuf.f_namemax, fsBuf.f_namelen); diff --git a/kernel_lite/fs_posix/src/FsUnistdTest.cpp b/kernel_lite/fs_posix/src/FsUnistdTest.cpp index e76d3ca351ee993b25ca778cc5e2c7057ecf6bba..a1fc9b0d3ab67509c54979216e77da9f5f80d19e 100755 --- a/kernel_lite/fs_posix/src/FsUnistdTest.cpp +++ b/kernel_lite/fs_posix/src/FsUnistdTest.cpp @@ -272,13 +272,13 @@ HWTEST_F(FileSystemTest, testFtruncateEinval, Function | MediumTest | Level3) #if defined(LITE_FS_VFAT) /** * @tc.number SUB_KERNEL_FS_UNISTD_0502 - * @tc.name basic function test : test ftruncate with EACCES + * @tc.name basic function test : test ftruncate with ENOSYS * @tc.desc [C- SOFTWARE -0200] */ HWTEST_F(FileSystemTest, testFtruncateEacces, Function | MediumTest | Level3) { EXPECT_EQ(ftruncate(STDERR_FILENO, 10), -1); - EXPECT_EQ(errno, EACCES); + EXPECT_EQ(errno, ENOSYS); } #endif