Change test tc07_check_privilege_by_sockfd
authorJan Cybulski <j.cybulski@samsung.com>
Mon, 15 Apr 2013 13:00:39 +0000 (15:00 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 13:19:16 +0000 (14:19 +0100)
        [Issue#]   SDWSSP-189
        [Feature]  Changing testcase
        [Cause]    Test failed.  Label kept in the socket can be different
than the label of the peer, when the peer changed the label
after creating socket.
        [Solution] Changing label before creating socket.
Socket and peer label will stay the same.
        [Verification] Successful build. Running the security server tests

Change-Id: I7f409492ea33cfa0a354d2527ae2752fe04e749e

tests/security-server-tests/security_server_tests_client_smack.cpp

index 6b9e1cf..9df76cc 100644 (file)
@@ -314,7 +314,7 @@ RUNNER_TEST(tc07_check_privilege_by_sockfd)
     int status;
     waitpid(pid, &status, 0);
 
-    RUNNER_ASSERT(SECURITY_SERVER_API_SUCCESS == result1);
+    RUNNER_ASSERT(SECURITY_SERVER_API_ERROR_ACCESS_DENIED == result1);
     RUNNER_ASSERT(SECURITY_SERVER_API_ERROR_ACCESS_DENIED == result2);
 }