From f6d046420864883f0b024bb663cc3fb0622e2f82 Mon Sep 17 00:00:00 2001 From: Rafal Krypa Date: Tue, 21 Oct 2014 13:35:55 +0200 Subject: [PATCH] One missing fix for cynara_check return code Commit 1c357c269b should also adjust tests for security-manager. Changing expected return code of cynara_check from CYNARA_API_SUCCESS to CYNARA_API_ACCESS_ALLOWED. Change-Id: I4f1ad908f0d91f91af9dec9a701f8f41504730dc --- tests/security-manager-tests/security_manager_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/security-manager-tests/security_manager_tests.cpp b/tests/security-manager-tests/security_manager_tests.cpp index 5698d6d..9d217c8 100644 --- a/tests/security-manager-tests/security_manager_tests.cpp +++ b/tests/security-manager-tests/security_manager_tests.cpp @@ -186,7 +186,7 @@ static void check_app_permissions(const char *const app_id, const char *const pk CynaraTestClient ctc; for (auto &priv : allowed_privs) { - ctc.check(smackLabel.c_str(), "", user, priv.c_str(), CYNARA_API_SUCCESS); + ctc.check(smackLabel.c_str(), "", user, priv.c_str(), CYNARA_API_ACCESS_ALLOWED); } for (auto &priv : denied_privs) { -- 2.7.4