Fix libprivilege-control nosmack tests
authorPiotr Bartosiewicz <p.bartosiewi@partner.samsung.com>
Fri, 18 Oct 2013 14:04:43 +0000 (16:04 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 14:19:10 +0000 (15:19 +0100)
commit5ef323885200223ba11b8b50603d70a0feb5ef86
tree29a9d79d22e6150e9634cd1d8aa8b46e6673445a
parent101305f52629fcc58fd46ea46fe02c53d7126deb
Fix libprivilege-control nosmack tests

[Issue#]        SSDWSSP-581
[Bug]           Many of libprivilege tests fail on nosmack kernel
[Cause]         The test cases are not adjusted to the new version of
                libprivilege.
[Solution]      Don't use deprecated APP_TYPE_OTHER; use DB_BEGIN,
                DB_END, perm_app_install, where it is expected; don't
                check SMACK_RULES_DIR dir while it is not used amymore.
[Verification]  Build, install (with new libprivilege) and check on
                smack and no-smack version of kernel.

Change-Id: I8bbf53857c9f1b69a0f40e606c0e9fe795ab0ba2
tests/libprivilege-control-tests/common/libprivilege-control_test_common.h
tests/libprivilege-control-tests/libprivilege-control_test_common.cpp
tests/libprivilege-control-tests/test_cases.cpp
tests/libprivilege-control-tests/test_cases_nosmack.cpp