提交 9ecdd288 编写于 作者: C chensiming

Signed-off-by:chensiming<chensiming3@huawei.com>

Signed-off-by: Nchensiming <1067037310@qq.com>
上级 4e5a7145
...@@ -340,7 +340,7 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testObtainSysPara022, Function | MediumTe ...@@ -340,7 +340,7 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testObtainSysPara022, Function | MediumTe
{ {
char* value = GetBuildRootHash(); char* value = GetBuildRootHash();
printf("Build Root Hash=%s\n", value); printf("Build Root Hash=%s\n", value);
AssertNotEmpty(value); TEST_ASSERT_NOT_NULL(value);
free(value); free(value);
}; };
...@@ -993,4 +993,4 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testGetParameter020, Function | MediumTes ...@@ -993,4 +993,4 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testGetParameter020, Function | MediumTes
TEST_ASSERT_EQUAL_STRING(rightVal2, value2); TEST_ASSERT_EQUAL_STRING(rightVal2, value2);
}; };
RUN_TEST_SUITE(ParameterFuncTestSuite); RUN_TEST_SUITE(void);
...@@ -479,7 +479,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli021, Function | Medi ...@@ -479,7 +479,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli021, Function | Medi
LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli022, Function | MediumTest | Level1) LITE_TEST_CASE(ParameterReliTestSuite, testObtainSysParaReli022, Function | MediumTest | Level1)
{ {
char* value1 = GetBuildRootHash(); char* value1 = GetBuildRootHash();
AssertNotEmpty(value1); TEST_ASSERT_NOT_NULL(value1);
for (int i = 0; i < QUERY_TIMES; i++) for (int i = 0; i < QUERY_TIMES; i++)
{ {
char* value = GetBuildRootHash(); char* value = GetBuildRootHash();
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "hctest.h" #include "hctest.h"
#include "parameter_utils.h" #include "parameter_utils.h"
void AssertNotEmpty(const char* sysPara) void AssertNotEmpty(const char *sysPara)
{ {
TEST_ASSERT_NOT_NULL(sysPara); TEST_ASSERT_NOT_NULL(sysPara);
if (sysPara != NULL) { if (sysPara != NULL) {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @tc.name :determines whether the string is empty. * @tc.name :determines whether the string is empty.
* @param :system parameter * @param :system parameter
*/ */
void AssertNotEmpty(const char* sysPara); static void AssertNotEmpty(const char *sysPara);
#ifdef __cplusplus #ifdef __cplusplus
#if __cplusplus #if __cplusplus
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册