Provides macro for easy backup of libprivilege DB
authorPawel Broda <p.broda@partner.samsung.com>
Mon, 13 Jan 2014 15:51:32 +0000 (16:51 +0100)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 14:27:55 +0000 (15:27 +0100)
commit9c638419ddc9363bda7f349d647555840db5b7b5
tree2857160b367e77c5dc241f05a59ff48c6bda61f3
parentc4cd53318483b3af4afcdee648bcbeedaedc7184
Provides macro for easy backup of libprivilege DB

[Issue#]        SSDWSSP-732
[Feature]       Implement better DB management in our libprivilege-control tests.
[Cause]         It was not possible to withdraw changes done by some of the tests.
                As a result some of the DB changes were permanent.
[Solution]      Provide a macro which backups DB before each test and copies it back
                after the test.
[Verification]  Build and run on the target.

Change-Id: I2c46c69ee3cc122bc8567e5f97ed9530940bb508
tests/common/tests_common.cpp
tests/libprivilege-control-tests/common/libprivilege-control_test_common.h
tests/libprivilege-control-tests/libprivilege-control_test_common.cpp