remove funcTest

This commit is contained in:
slzhou 2022-04-24 14:27:17 +08:00
parent 7791ad5af1
commit 0beaab3823
2 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ target_link_libraries(
PUBLIC sut PUBLIC sut
) )
add_test( #add_test(
NAME funcTest # NAME funcTest
COMMAND funcTest # COMMAND funcTest
) #)

View File

@ -453,7 +453,7 @@ TEST_F(MndTestFunc, 05_Actual_code) {
strcpy(createReq.name, "udf1"); strcpy(createReq.name, "udf1");
char code[300] = {0}; char code[300] = {0};
for (int32_t i = 0; i < sizeof(code); ++i) { for (int32_t i = 0; i < sizeof(code); ++i) {
code[i] = (i+1) % 20; code[i] = (i) % 20;
} }
SetCode(&createReq, code, 300); SetCode(&createReq, code, 300);
SetComment(&createReq, "comment1"); SetComment(&createReq, "comment1");
@ -507,7 +507,7 @@ TEST_F(MndTestFunc, 05_Actual_code) {
EXPECT_EQ(pFuncInfo->signature, 5); EXPECT_EQ(pFuncInfo->signature, 5);
EXPECT_STREQ("comment1", pFuncInfo->pComment); EXPECT_STREQ("comment1", pFuncInfo->pComment);
for (int32_t i = 0; i < 300; ++i) { for (int32_t i = 0; i < 300; ++i) {
EXPECT_EQ(pFuncInfo->pCode[i], (i+1) % 20); EXPECT_EQ(pFuncInfo->pCode[i], (i) % 20);
} }
tFreeSRetrieveFuncRsp(&retrieveRsp); tFreeSRetrieveFuncRsp(&retrieveRsp);
} }