CKM: Remove logs to suppress smack errors 08/41308/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 12 Jun 2015 09:45:21 +0000 (11:45 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 12 Jun 2015 09:50:13 +0000 (11:50 +0200)
[Problem] Smack is complaining about denied access to /etc/dlog/platformlog.conf
which is caused by using dlog logs in tests.
[Solution] Existing logs are not important and have been removed.

[Verification] Run tests and check journalctl for smack errors. There should be
none.

Change-Id: Id46305b9cf0aae0029315a11a02fb68ff6700d57

src/ckm/async-api.cpp
src/ckm/initial-values.cpp
src/ckm/main.cpp
src/ckm/password-integration.cpp
src/ckm/system-db.cpp

index 756f842..e0889e3 100644 (file)
@@ -36,7 +36,6 @@
 
 #include <dpl/test/test_runner.h>
 #include <dpl/test/test_runner_child.h>
-#include <dpl/log/log.h>
 
 #include <tests_common.h>
 #include <test-certs.h>
@@ -71,7 +70,6 @@ public:
 
     void ReceivedError(int error)
     {
-        LogError("Received error: " << error);
         m_finished = true;
         m_error = error;
         m_cv.notify_one();
@@ -123,7 +121,6 @@ public:
 protected:
     void Succeeded()
     {
-        LogDebug("Succeeded");
         m_finished = true;
         m_cv.notify_one();
     }
index a66ab6d..a940b00 100644 (file)
@@ -19,7 +19,6 @@
  */
 #include <dpl/test/test_runner.h>
 #include <dpl/test/test_runner_child.h>
-#include <dpl/log/log.h>
 #include <tests_common.h>
 #include <ckm-common.h>
 #include <ckm/ckm-control.h>
index fae2744..cb2458e 100644 (file)
@@ -19,8 +19,6 @@
 #include <openssl/x509.h>
 #include <openssl/x509v3.h>
 
-#include <dpl/log/log.h>
-
 namespace {
 const int USER_APP = 5000;
 const int GROUP_APP = 5000;
@@ -3242,6 +3240,5 @@ RUNNER_TEST(T1905_deinit)
 
 int main(int argc, char *argv[])
 {
-    DPL::Log::LogSystemSingleton::Instance().SetTag("CKM_TESTS");
     return DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
 }
index 7e816de..3df917e 100644 (file)
@@ -20,7 +20,6 @@
 #include <vector>
 #include <dpl/test/test_runner.h>
 #include <dpl/test/test_runner_child.h>
-#include <dpl/log/log.h>
 
 #include <tests_common.h>
 
index 97b48a5..768abd4 100644 (file)
@@ -19,7 +19,6 @@
  */
 #include <dpl/test/test_runner.h>
 #include <dpl/test/test_runner_child.h>
-#include <dpl/log/log.h>
 #include <tests_common.h>
 #include <ckm-common.h>
 #include <ckm/ckm-control.h>