From 73280b1db7c4e26984c007ee7e309cb69daad67f Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Wed, 11 Jan 2017 15:11:50 +0100 Subject: [PATCH] Adjust test 01c_app_uninstall_wrong_pkg_id Pkg id is no longer ignored during app uninstallation. Test updated. Change-Id: I120a98219dcfe099047a6e36acc7b3aecf92f1ca --- src/security-manager-tests/test_cases.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/security-manager-tests/test_cases.cpp b/src/security-manager-tests/test_cases.cpp index 2c2f979..e18edd5 100644 --- a/src/security-manager-tests/test_cases.cpp +++ b/src/security-manager-tests/test_cases.cpp @@ -90,7 +90,7 @@ RUNNER_TEST(security_manager_01b_app_double_install_wrong_pkg_id) check_app_after_uninstall(app.getAppId(), app.getPkgId()); } -RUNNER_TEST(security_manager_01c_app_uninstall_pkg_id_ignored) +RUNNER_TEST(security_manager_01c_app_uninstall_wrong_pkg_id) { AppInstallHelper app("sm_test_01c"); ScopedInstaller appInstall(app); @@ -99,12 +99,9 @@ RUNNER_TEST(security_manager_01c_app_uninstall_pkg_id_ignored) InstallRequest requestUninst; requestUninst.setAppId(app.getAppId()); - requestUninst.setPkgId(app.getPkgId() + "_ignored"); // pkg_id param is ignored in uninstall request + requestUninst.setPkgId(app.getPkgId() + "_wrong_pkg_id"); - Api::uninstall(requestUninst); - - check_app_after_uninstall(app.getAppId(), app.getPkgId()); - // ScopedInstaller destructor (app second uninstallation) won't have any effect + Api::uninstall(requestUninst, SECURITY_MANAGER_ERROR_NO_SUCH_OBJECT); } /* -- 2.7.4