security_manager_53c_get_id_by_cynara_client_only_pkgid
security_manager_53d_get_id_by_cynara_client_only_appid
security_manager_53e_get_id_by_cynara_client_nulls
+ security_manager_25b_global_user_set_install_type_local
)
function run_tests_and_exit {
requestInst.setPkgId(app.getPkgId());
requestInst.setInstallType(SM_APP_INSTALL_LOCAL);
- Api::install(requestInst, (lib_retcode)SECURITY_MANAGER_ERROR_SERVER_ERROR);
+ // TODO: If local install for global user is not allowed, there should be
+ // a specific check for that in security-manager with a proper error code.
+ // Tests should not rely on a random error code based on the order of operations.
+ if (smack_check()) {
+ Api::install(requestInst, (lib_retcode)SECURITY_MANAGER_ERROR_SERVER_ERROR);
+ } else {
+ Api::install(requestInst, (lib_retcode)SECURITY_MANAGER_ERROR_UNKNOWN);
+ }
}
RUNNER_CHILD_TEST(security_manager_25c_global_user_set_install_type_preloaded)