提交 379f09aa 编写于 作者: O openharmony_ci 提交者: Gitee

!133 fix fail testcase

Merge pull request !133 from 胡吉翔/security_lite_20210412
...@@ -31,7 +31,7 @@ void DacTestSuite::SetUp() ...@@ -31,7 +31,7 @@ void DacTestSuite::SetUp()
// Delete the the directory if exists // Delete the the directory if exists
RemoveDir(TOP_DIR "/" DACDIR0); RemoveDir(TOP_DIR "/" DACDIR0);
RemoveDir(TOP_DIR "/" DACDIR1); RemoveDir(TOP_DIR "/" DACDIR1);
RemoveDir("/dev/" DACDIR0); RemoveDir("/storage/" DACDIR0);
// Obtain the current working directory of the test code // Obtain the current working directory of the test code
mCurPath = GetCurrentPath(); mCurPath = GetCurrentPath();
// Modify the current working directory of the test code // Modify the current working directory of the test code
...@@ -47,7 +47,7 @@ void DacTestSuite::TearDown() ...@@ -47,7 +47,7 @@ void DacTestSuite::TearDown()
// Delete the the directory if exists // Delete the the directory if exists
RemoveDir(TOP_DIR "/" DACDIR0); RemoveDir(TOP_DIR "/" DACDIR0);
RemoveDir(TOP_DIR "/" DACDIR1); RemoveDir(TOP_DIR "/" DACDIR1);
RemoveDir("/dev/" DACDIR0); RemoveDir("/storage/" DACDIR0);
// Initialize the process and set the uid and gid of the process to zero // Initialize the process and set the uid and gid of the process to zero
SetUidGid(UID0, GID0); SetUidGid(UID0, GID0);
// Restore the working directory of the test code // Restore the working directory of the test code
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册