From 8da2df65d07c9d8f43b4d54b181f39f0bd991ec3 Mon Sep 17 00:00:00 2001 From: Kyungwook Tak Date: Fri, 10 Jun 2016 14:54:21 +0900 Subject: [PATCH] Disable test resources reset function service cannot be restarted on both of platform v 2.4 and 3.0. On 2.4, there's undefined behaviour when systemctl restart called. On 3.0, test program should be run as "owner" user but it doesn't have permission to restart system service. Change-Id: I233a78fb81b1fc5a3835d7c013391e91c106d6b3 Signed-off-by: Kyungwook Tak --- test/test-common.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-common.cpp b/test/test-common.cpp index ffad409..d2c00bf 100644 --- a/test/test-common.cpp +++ b/test/test-common.cpp @@ -424,6 +424,7 @@ bool install_app(const char *app_path, const char *pkg_type) void initialize_db() { +#if 0 #ifdef PLATFORM_VERSION_3 remove_file(RW_DBSPACE ".csr.db"); remove_file(RW_DBSPACE ".csr.db-journal"); @@ -431,6 +432,7 @@ void initialize_db() int ret = system("systemctl restart csr.service"); BOOST_MESSAGE("CSR DB Initalization & Daemon Restart. Result=" << ret); #endif +#endif } } // namespace Test -- 2.7.4