fix security_manager_09_add_user_offline 62/36062/4
authorRafal Krypa <r.krypa@samsung.com>
Fri, 27 Feb 2015 11:28:51 +0000 (12:28 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 2 Mar 2015 14:49:12 +0000 (15:49 +0100)
- perform initial app uninstallation in on-line mode
  (off-line doesn't support that)
- stop both security-manager.service and security-manager.socket

Change-Id: Ifcdb6d7a27c68b8b6e813bfd58887f80e17ea542
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
tests/security-manager-tests/security_manager_tests.cpp

index 91ce110d22a06b40a4ea26d49ddda4761fb9c5fe..0dfef82ce3accf6134d4aa3d391f721e96d2de69 100644 (file)
@@ -899,8 +899,10 @@ RUNNER_CHILD_TEST(security_manager_09_add_user_offline)
     const char *const app_id = "security_manager_09_add_user_offline_app";
     const char *const pkg_id = "security_manager_09_add_user_offline_pkg";
     const std::string new_user_name("sm_test_09_user_name");
-    ServiceManager serviceManager("security-manager.service");
-    serviceManager.maskService();
+
+    ServiceManager("security-manager.service").stopService();
+
+    ServiceManager serviceManager("security-manager.socket");
     serviceManager.stopService();
 
     TemporaryTestUser test_user(new_user_name, GUM_USERTYPE_NORMAL, true);
@@ -913,7 +915,6 @@ RUNNER_CHILD_TEST(security_manager_09_add_user_offline)
 
     check_app_after_install(app_id, pkg_id);
 
-    serviceManager.unmaskService();
     serviceManager.startService();
 
     test_user.remove();