Use tzplatform_mkpath to get path to .rules-db.db3 database 82/24482/1
authorJacek Bukarewicz <j.bukarewicz@samsung.com>
Tue, 15 Jul 2014 08:07:59 +0000 (10:07 +0200)
committerJacek Bukarewicz <j.bukarewicz@samsung.com>
Tue, 15 Jul 2014 08:14:57 +0000 (10:14 +0200)
Change-Id: I6b834fe93551349954480dbc809e483f6a146dfd
Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
tests/libprivilege-control-tests/CMakeLists.txt
tests/libprivilege-control-tests/common/db.cpp
tests/libprivilege-control-tests/common/libprivilege-control_test_common.h

index ca2afce..9bd88ba 100644 (file)
@@ -63,6 +63,7 @@ PKG_CHECK_MODULES(LPC_TARGET_DEP
     libprivilege-control
     dpl-test-efl
     sqlite3
+    libtzplatform-config
     REQUIRED
     libiri
     )
index b15061e..b7f4ee4 100644 (file)
 
 #include <tests_common.h>
 #include <privilege-control.h>
+#include <tzplatform_config.h>
 #include <sstream>
 #include <string.h>
 #include "db.h"
 #include "db_sqlite.h"
 #include "duplicates.h"
 
-const std::string DBASE_PATH = "/opt/dbspace/.rules-db.db3";
+const std::string DBASE_PATH = tzplatform_mkpath(TZ_SYS_DB, ".rules-db.db3");
 const std::string ALL_APPS ="ALL_APPS";
 
 const int PERMISSION_VOLATILE = 1;
index f7251f5..3afb04b 100644 (file)
@@ -72,9 +72,6 @@
 
 extern const char *USER_APP_ID;
 
-const std::string RDB_PATH("/opt/dbspace/.rules-db.db3");
-const std::string RDB_PATH_BACKUP("/opt/dbspace/.rules-db.db3.backup");
-
 extern const char *PRIVS1[];
 extern const char *PRIVS2[];
 extern const char *PRIVS2_NO_R[];