From ad7521bffa55073c5d045233c2926f3e80918c9c Mon Sep 17 00:00:00 2001 From: SloveZT Date: Tue, 18 May 2021 23:26:35 +0800 Subject: [PATCH] fix reviewBot --- .../dbm_kv_store_hal/src/dbm_kv_store_func_test.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/distributeddatamgr_lite/dbm_kv_store_hal/src/dbm_kv_store_func_test.c b/distributeddatamgr_lite/dbm_kv_store_hal/src/dbm_kv_store_func_test.c index 02ea55cda..2b8a2b1ab 100644 --- a/distributeddatamgr_lite/dbm_kv_store_hal/src/dbm_kv_store_func_test.c +++ b/distributeddatamgr_lite/dbm_kv_store_hal/src/dbm_kv_store_func_test.c @@ -107,8 +107,8 @@ static BOOL PutKVs(int num, const char* key, const char* content) memset_s(&value, sizeof(value), 0, sizeof(value)); value.num = i; - int ret = strcpy_s(value.content, sizeof(value.content), content); - EXPECT_EQ(0, ret); + int ret = strcpy_s(value.content, sizeof(value.content), content); + TEST_ASSERT_EQUAL_INT(0, ret); status = DBM_Put(g_KVStoreHandle, keytemp, (void*)&value, sizeof(value)); if (i <= MAX_KEY_NUM_TEST) { @@ -159,8 +159,9 @@ static BOOL GetKVs(int num, const char* key, const char* content) memset_s(&value, sizeof(value), 0, sizeof(value)); value.num = loop; - int ret = strcpy_s(value.content, sizeof(value.content), content); - EXPECT_EQ(0, ret); + + int ret = strcpy_s(value.content, sizeof(value.content), content); + TEST_ASSERT_EQUAL_INT(0, ret); memset_s(&value1, sizeof(value1), 0, sizeof(value1)); unsigned int realValLen = 0; -- GitLab