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

!1372 Fix L1 ActsJFFS2Capability failed testcase

Merge pull request !1372 from 胡吉翔/security_lite_20211215_02
...@@ -33,11 +33,17 @@ protected: ...@@ -33,11 +33,17 @@ protected:
void TearDown(); void TearDown();
}; };
void CapabilityTestSuite::SetUp() int main()
{ {
if (CheckFsMount(TOP_DIR, TOP_DIR_MOUNT_INFO) != 0) { if (CheckFsMount(TOP_DIR, TOP_DIR_MOUNT_INFO) != 0) {
return; return 1;
} else {
return RUN_ALL_TESTS();
} }
}
void CapabilityTestSuite::SetUp()
{
// Permission mask preset when creating a file // Permission mask preset when creating a file
umask(ZERO); umask(ZERO);
// Init capabilities // Init capabilities
......
...@@ -33,12 +33,18 @@ protected: ...@@ -33,12 +33,18 @@ protected:
void TearDown(); void TearDown();
}; };
// Preset action of the test suite, which is executed before the first test case int main()
void DacTestSuite::SetUp()
{ {
if (CheckFsMount(TOP_DIR, TOP_DIR_MOUNT_INFO) != 0) { if (CheckFsMount(TOP_DIR, TOP_DIR_MOUNT_INFO) != 0) {
return; return 1;
} else {
return RUN_ALL_TESTS();
} }
}
// Preset action of the test suite, which is executed before the first test case
void DacTestSuite::SetUp()
{
// Permission mask preset when creating a file // Permission mask preset when creating a file
umask(ZERO); umask(ZERO);
// Init capabilities // Init capabilities
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册