X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fsecurity-manager-tests%2Ftest_cases.cpp;h=54dfc932e309a0fadd9f0423f21a999aeda2f321;hb=88696e44aa6d9cff6c5318d015f9f681683d7620;hp=b524d11ada747efc93382c7468edb0e957590867;hpb=9a3ff4fc615eba2684f45a9cd0d3827365542f8c;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git diff --git a/src/security-manager-tests/test_cases.cpp b/src/security-manager-tests/test_cases.cpp index b524d11..54dfc93 100644 --- a/src/security-manager-tests/test_cases.cpp +++ b/src/security-manager-tests/test_cases.cpp @@ -471,16 +471,14 @@ RUNNER_TEST(security_manager_09_app_install_constraint_check) install(users[1], pkgId[0], appId[0], version[0], author[0], hybrid[1], SECURITY_MANAGER_ERROR_INPUT_PARAM); // uid_1, pkg_0, app_0, version_0, author_1, not hybrid -> fail (author of app_0 must be the same) install(users[1], pkgId[0], appId[0], version[0], author[1], hybrid[0], SECURITY_MANAGER_ERROR_INPUT_PARAM); - // uid_1, pkg_0, app_0, version_1, author_0, not hybrid -> fail (version of app_0 must be the same) - install(users[1], pkgId[0], appId[0], version[1], author[0], hybrid[0], SECURITY_MANAGER_ERROR_INPUT_PARAM); + // uid_1, pkg_0, app_0, version_1, author_0, not hybrid -> ok (version upgrade) + install(users[1], pkgId[0], appId[0], version[1], author[0], hybrid[0], SECURITY_MANAGER_SUCCESS); // uid_1, pkg_1, app_0, version_0, author_0, not hybrid -> fail (pkg of app_0 must be the same) install(users[1], pkgId[1], appId[0], version[0], author[0], hybrid[0], SECURITY_MANAGER_ERROR_INPUT_PARAM); // uid_0, pkg_0, app_0, version_0, author_0, not hybrid -> ok (the same app again) install(users[0], pkgId[0], appId[0], version[0], author[0], hybrid[0], SECURITY_MANAGER_SUCCESS, false); // uid_0, pkg_1, app_0, version_0, author_0, not hybrid -> fail (app_name + uid must be unique) install(users[0], pkgId[1], appId[0], version[0], author[0], hybrid[0], SECURITY_MANAGER_ERROR_INPUT_PARAM); - // uid_0, pkg_0, app_0, version_1, author_0, not hybrid -> fail (app_name + uid must be unique) - install(users[0], pkgId[0], appId[0], version[1], author[0], hybrid[0], SECURITY_MANAGER_ERROR_INPUT_PARAM); // uid_0, pkg_0, app_0, version_0, author_1, not hybrid -> fail (app_name + uid must be unique) install(users[0], pkgId[0], appId[0], version[0], author[1], hybrid[0], SECURITY_MANAGER_ERROR_INPUT_PARAM); }