diff --git a/security_lite/permission_posix/capability/src/CapabilityTestSuite.cpp b/security_lite/permission_posix/capability/src/CapabilityTestSuite.cpp index 4aa8f23150967b4528c5a7f6898229b2d4b7acaa..fea5d1ec5d473aea78f772889be7348964cd6c7b 100755 --- a/security_lite/permission_posix/capability/src/CapabilityTestSuite.cpp +++ b/security_lite/permission_posix/capability/src/CapabilityTestSuite.cpp @@ -33,11 +33,17 @@ protected: void TearDown(); }; -void CapabilityTestSuite::SetUp() +int main() { 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 umask(ZERO); // Init capabilities diff --git a/security_lite/permission_posix/dac/src/DacTestSuite.cpp b/security_lite/permission_posix/dac/src/DacTestSuite.cpp index e5b2043a7d334dfa40bf6f1ba7ce7b10cda81d69..87c3aa9bdf99fe0f3cd5b4729dfe25b2ff883bde 100755 --- a/security_lite/permission_posix/dac/src/DacTestSuite.cpp +++ b/security_lite/permission_posix/dac/src/DacTestSuite.cpp @@ -33,12 +33,18 @@ protected: void TearDown(); }; -// Preset action of the test suite, which is executed before the first test case -void DacTestSuite::SetUp() +int main() { 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 umask(ZERO); // Init capabilities