From a49279d32446d22c542d3de5ccc7f1848432c4f1 Mon Sep 17 00:00:00 2001 From: Chul Lee Date: Thu, 27 Oct 2016 23:58:01 +0900 Subject: [PATCH] Fixed unittest error of secure resource provider. Change-Id: If0a7be512046ab14e7539a6ad2d03a3078d98550 Signed-off-by: Chul Lee Reviewed-on: https://gerrit.iotivity.org/gerrit/13787 Tested-by: jenkins-iotivity Reviewed-by: Randeep Singh --- .../csdk/security/provisioning/unittest/secureresourceprovider.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resource/csdk/security/provisioning/unittest/secureresourceprovider.cpp b/resource/csdk/security/provisioning/unittest/secureresourceprovider.cpp index 967e3be..fdb484a 100644 --- a/resource/csdk/security/provisioning/unittest/secureresourceprovider.cpp +++ b/resource/csdk/security/provisioning/unittest/secureresourceprovider.cpp @@ -310,9 +310,10 @@ TEST_F(SRPTest, SRPSaveOwnCertChainTest) key.data = keyData; key.len = sizeof(keyData); + //This test case cannot succeed. because doxm resource has not been initialized. result = SRPSaveOwnCertChain(&cert, &key, &credId); - EXPECT_EQ(OC_STACK_OK, result); + EXPECT_EQ(OC_STACK_ERROR, result); } TEST_F(SRPTest, SRPSaveOwnCertChainTestNullCert) -- 2.7.4