提交 da4b3bea 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !124 from chuaizhzh/kernel_lite_20210409_3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册