Removed use of pid_cycle file and ENVIRONMENT macros 37/18537/8
authorSebastian Grabowski <s.grabowski@partner.samsung.com>
Tue, 25 Mar 2014 12:44:13 +0000 (13:44 +0100)
committerSebastian Grabowski <s.grabowski@partner.samsung.com>
Mon, 31 Mar 2014 13:22:46 +0000 (15:22 +0200)
commit4c65df7da4945c20b8afc128f89ce9a76d00066a
tree5be9461142a710a407b4c61edfa907baa713c9f3
parent839d456ed6c838e83340e5c16958845c27bd8d8d
Removed use of pid_cycle file and ENVIRONMENT macros

[Bug/Feature]   Security-server client tests failure with smack disabled
                while test environment preparations
[Cause]         pid_cycle file was created in a nonexistent directory.
                Moreover, this file seems to be unused in any way
                further and not deleted either.
[Solution]      Get rid of pid_cycle file usage. In addition,
                ENVIRONMENT and ENVIRONMENT_NOSMACK macros were deleted
                in favour of drop_root_privileges function for nonsmack
                tests and AccessProvider class for smack tests.
                There were also duplicated tests about security server
                cookies - they were moved to cookie_api.cpp.
                Tests run as app user in cookie_api.cpp are now distinguished
                from others with changed name having "_app_user_" string.
[Verification]  Build, install and run tests, i.e.:
                security-tests.sh ss-server --runignored --output=text
                security-tests.sh ss-clientsmack --runignored --output=text

Change-Id: I68ad3f0bb12f437fa927660327c5e44f91e91446
Signed-off-by: Sebastian Grabowski <s.grabowski@partner.samsung.com>
tests/security-server-tests/cookie_api.cpp
tests/security-server-tests/security_server_measurer_API_speed.cpp
tests/security-server-tests/security_server_tests_client_smack.cpp