提交 844302b2 编写于 作者: O openharmony_ci 提交者: Gitee

!130 修改testTruncateEacces用例错误码的问题

Merge pull request !130 from chuaizhzh/kernel_lite_20210412_1
...@@ -349,7 +349,7 @@ HWTEST_F(FileSystemTest, testTruncateEinval, Function | MediumTest | Level3) ...@@ -349,7 +349,7 @@ HWTEST_F(FileSystemTest, testTruncateEinval, Function | MediumTest | Level3)
HWTEST_F(FileSystemTest, testTruncateEacces, Function | MediumTest | Level3) HWTEST_F(FileSystemTest, testTruncateEacces, Function | MediumTest | Level3)
{ {
EXPECT_EQ(truncate("/", 10), -1); EXPECT_EQ(truncate("/", 10), -1);
printf("errno = %d\n" ,errno); printf("errno = %d\n", errno);
EXPECT_EQ(errno, EISDIR); EXPECT_EQ(errno, EISDIR);
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册