From d4875c29d99ffa88120f1e4bfd19aee35d47fde9 Mon Sep 17 00:00:00 2001 From: kyungwook tak Date: Wed, 1 Oct 2014 14:57:09 +0900 Subject: [PATCH] Restore cc mode status to off in deinit Change-Id: I1ae644057580248a8134d7c47101bbfce4ad72d5 Signed-off-by: kyungwook tak --- tests/ckm/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ckm/main.cpp b/tests/ckm/main.cpp index 52b75a9..98df3c7 100644 --- a/tests/ckm/main.cpp +++ b/tests/ckm/main.cpp @@ -3129,6 +3129,8 @@ RUNNER_TEST(T2004_deinit) auto control = CKM::Control::create(); RUNNER_ASSERT_MSG( CKM_API_SUCCESS == (tmp = control->removeUserData(0)), "Error=" << CKM::ErrorToString(tmp)); + RUNNER_ASSERT_MSG( CKM_API_SUCCESS == (tmp = control->setCCMode(CKM::CCModeState::CC_MODE_OFF)), // default state : cc mode off + "Error=" << CKM::ErrorToString(tmp)); system("`ps axf | grep key-manager-listener | grep -v grep | awk '{print \"kill -9 \" $1}'`"); system("vconftool unset file/security_mdpp/security_mdpp_state"); system("/usr/bin/key-manager-listener"); -- 2.7.4