提交 1ad6835d 编写于 作者: 是蕊蕊呀~'s avatar 是蕊蕊呀~

【内核子系统集成测试】恢复不稳定的用例:fs_posix模块FsStdlibTest.cpp(testRealpath)

Change-Id: I5317a25f2ed8dbbed1fcdfa2a5806a94c72bb0d8
上级 3f626a9d
......@@ -120,12 +120,16 @@ HWTEST_F(FileSystemTest, testRealpath, Function | MediumTest | Level3)
// get Absolute Path
const char *realPathStandard = TOP_DIR "/" FILE0;
char *realPath = (char*)malloc(256);
if(realpath(FILE0, realPath) == nullptr){
if (realpath(FILE0, realPath) == nullptr)
{
LOG("> realpath errno == %d", errno);
free(realPath);
ASSERT_TRUE(false);
}
else
{
EXPECT_STREQ(realPath, realPathStandard);
LOG("> realPath = %s", realPath);
free(realPath);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册