Fixing client smack tests.
authorMarcin Niesluchowski <m.niesluchow@samsung.com>
Mon, 23 Sep 2013 15:25:02 +0000 (17:25 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 14:19:09 +0000 (15:19 +0100)
commit9864ff95b3ead055c921881e4392eee1e126a241
treee28499be043e8e76848b4a8338f170b9cbfe4abd
parent7d9e3e1cc50d13a4ef758c5ce6b6242584fdcf6e
Fixing client smack tests.

[Issue#]        SSDWSSP-543
[Bug/Feature]   Root privileges are dropped in main test process and remaining
                tests in SECURITY_SERVER_TESTS_CLIENT_SMACK group run with them
                and fail when line with RUNNER_IGNORED_MSG deleted.
[Cause]         Changing test macros from RUNNER_CHILD* to RUNNER_MULTIPROCESS*
                on one smack and one nosmack test resulted in passing dropped
                root privileges in main process to tests run after those. Those
                privileges were held by RUNNER_CHILD* macros.
[Solution]      Keeping that macros for collecting result puposes and running
                both processes droping root privilege in child.
[Verification]  Building and running security-tests.sh ss-clientsmack. No tests
                should fail.

Change-Id: I7b1b4974dedd9a9d1d96e952411aa01cd4f3399b
tests/security-server-tests/security_server_tests_client_smack.cpp