security-manager-tests: fix expected error of security_manager_49b_* 77/68677/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 9 May 2016 08:57:50 +0000 (10:57 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 9 May 2016 08:57:50 +0000 (10:57 +0200)
The app installation fails because for local installations security-manager
expects that a user's directory in /home exists (/home/tizenglobalapp). In case
of global user there's no such directory. It's not a matter of authentication
but directory existence. Test has been updated to expect
SECURITY_MANAGER_ERROR_SERVER_ERROR rather than
SECURITY_MANAGER_ERROR_AUTHENTICATION_FAILED.

Change-Id: Iee34f5010731a3c0c45c92aa574b5266113e65c8

src/security-manager-tests/security_manager_tests.cpp

index 850ec7300c47e8e0a2648bc85acb01c3c449ec4e..72c23e7f105dbefaa30c6c0dd26cf30d7a1e575e 100644 (file)
@@ -3878,7 +3878,7 @@ RUNNER_TEST(security_manager_49b_global_user_set_install_type_local)
     requestInst.setPkgId(sm_pkg_id);
     requestInst.setInstallType(SM_APP_INSTALL_LOCAL);
 
-    Api::install(requestInst, (lib_retcode)SECURITY_MANAGER_ERROR_AUTHENTICATION_FAILED);
+    Api::install(requestInst, (lib_retcode)SECURITY_MANAGER_ERROR_SERVER_ERROR);
 }
 
 RUNNER_TEST(security_manager_49c_global_user_set_install_type_preloaded)