From: Krzysztof Jackiewicz Date: Wed, 18 Sep 2013 12:35:59 +0000 (+0200) Subject: Big gid check fixed X-Git-Tag: security-manager_5.5_testing~347 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18973d91d550a284715d33db36f8415c446169e2;hp=0fea69d2fa8d14d1fd2465a6a531093d4ef23d59;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Big gid check fixed [Issue#] N/A [Feature/Bug] N/A [Problem] Failing test tc04_security_server_check_privilege_weird_input_case [Cause] Test was checking if big (>2^16) gid values are acceptable, but there was no privilege for given gid. [Solution] Expected value changed from SECURITY_SERVER_API_SUCCESS to SECURITY_SERVER_API_ERROR_ACCESS_DENIED. [Verification] Run tests. tc04_security_server_check_privilege_weird_input_case should pass. Change-Id: Ibc7e624cfceb6d9018b685fb83340e693bcf93e0 --- diff --git a/tests/security-server-tests/security_server_tests_weird_arguments.cpp b/tests/security-server-tests/security_server_tests_weird_arguments.cpp index 1badd21..8b53ec4 100644 --- a/tests/security-server-tests/security_server_tests_weird_arguments.cpp +++ b/tests/security-server-tests/security_server_tests_weird_arguments.cpp @@ -128,7 +128,7 @@ RUNNER_TEST(tc04_security_server_check_privilege_weird_input_case) gid = 70666; ret = security_server_check_privilege(cookie2, gid); - RUNNER_ASSERT_MSG(ret == SECURITY_SERVER_API_SUCCESS, "ret: " << ret); + RUNNER_ASSERT_MSG(ret == SECURITY_SERVER_API_ERROR_ACCESS_DENIED, "ret: " << ret); } RUNNER_TEST(tc05_security_server_check_privilege_by_cookie_weird_input_case) {