diff --git a/kernel_lite/fs_posix/src/FsUnistdTest.cpp b/kernel_lite/fs_posix/src/FsUnistdTest.cpp index 193bf6303a27c1227f95d145185afb2d289c4b5e..882340d5dc3dcc43ac62966dca5815f3eb8f2a71 100755 --- a/kernel_lite/fs_posix/src/FsUnistdTest.cpp +++ b/kernel_lite/fs_posix/src/FsUnistdTest.cpp @@ -349,7 +349,8 @@ HWTEST_F(FileSystemTest, testTruncateEinval, Function | MediumTest | Level3) HWTEST_F(FileSystemTest, testTruncateEacces, Function | MediumTest | Level3) { EXPECT_EQ(truncate("/", 10), -1); - EXPECT_EQ(errno, EACCES); + printf("errno = %d\n" ,errno); + EXPECT_EQ(errno, EISDIR); } #endif