Big gid check fixed
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 18 Sep 2013 12:35:59 +0000 (14:35 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 14:19:09 +0000 (15:19 +0100)
[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

tests/security-server-tests/security_server_tests_weird_arguments.cpp

index 1badd21..8b53ec4 100644 (file)
@@ -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)
 {