Fix libprivilege-control tests 87/39787/4
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 22 May 2015 08:28:38 +0000 (10:28 +0200)
committerZbigniew Jasinski <z.jasinski@samsung.com>
Fri, 22 May 2015 13:38:01 +0000 (06:38 -0700)
commit8be74b0578e5f15e9e8f91ed46d53e421baa69f6
tree5eb6bd5c3776f0422340e5d8875890413122650f
parentb9c2fb174dc62f77ac7c95f0c7f772d3b4e00481
Fix libprivilege-control tests

[Problem] Libprivilege-control assigns the same label "User" to all
applications. Because of that some of tests make no sense. User id is fixed to
5000 but there's no such user in the system. Wrt-client binary does not exist
so getting its smack label fails.
[Solution] Meaningless asserts commented. User id retrieved from tzconfig. DAC
groups database cleared after every perm_app_set_privilege test.

[Verification] Run libprivilege-control-tests --output=text

Change-Id: Ib8e1f4deafd7033c7ac892af6afd9d46c724c062
packaging/security-tests.manifest
src/common/tests_common.h
src/libprivilege-control-tests/CMakeLists.txt
src/libprivilege-control-tests/test_cases.cpp
src/libprivilege-control-tests/test_cases_stress.cpp