diff options
author | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2018-10-17 17:02:10 +0200 |
---|---|---|
committer | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2018-10-19 14:31:50 +0200 |
commit | fe7aaaa1c46cf37dc498827b8f355c7d04a6a65a (patch) | |
tree | cef48405e7f15f6276fc299dd610bdb3b144685e /packaging | |
parent | 3a2c08acbcafe1b957ef00ff1f49e5377b5ec005 (diff) | |
download | key-manager-fe7aaaa1c46cf37dc498827b8f355c7d04a6a65a.tar.gz key-manager-fe7aaaa1c46cf37dc498827b8f355c7d04a6a65a.tar.bz2 key-manager-fe7aaaa1c46cf37dc498827b8f355c7d04a6a65a.zip |
Fix internal scheme tests
1. Regular std::exception is not reported as error by boost test.
Std::runtime_error is used because a part of the test code is also used in
a tool for database generation.
This commit replaces calls to boost test macros with calls to a wrapper macro
which is expanded to std::runtime_error or boost test assert depending on a
compilation flag.
2. Test binaries are modifying process labels which requires onlycap.
This commit modifies exec label and adds onlycap fixture to disable onlycap
for scheme tests.
Change-Id: Ibbe44c2bca6e12b5ade360b267c281ef18294258
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/key-manager-tests.manifest.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/key-manager-tests.manifest.in b/packaging/key-manager-tests.manifest.in index 2442a89f..d302dcc4 100644 --- a/packaging/key-manager-tests.manifest.in +++ b/packaging/key-manager-tests.manifest.in @@ -3,8 +3,8 @@ <domain name="_" /> </request> <assign> - <filesystem path="@BIN_DIR@/ckm-tests-internal" exec_label="@SMACK_DOMAIN_NAME@" /> + <filesystem path="@BIN_DIR@/ckm-tests-internal" exec_label="System::Privileged" /> <filesystem path="@BIN_DIR@/ckm_db_tool" exec_label="@SMACK_DOMAIN_NAME@" /> - <filesystem path="@BIN_DIR@/ckm_generate_db" exec_label="@SMACK_DOMAIN_NAME@" /> + <filesystem path="@BIN_DIR@/ckm_generate_db" exec_label="System::Privileged" /> </assign> </manifest> |