From cc74abad596da282e78b7b6fde13d9063f53375a Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Fri, 2 Aug 2024 01:53:22 +0800 Subject: [PATCH] test: scan returned values in ci --- Jenkinsfile2 | 2 +- tests/ci/filter_for_return_values | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 4636702340..15e311b41e 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -455,7 +455,7 @@ pipeline { } sh ''' cd ${WKC}/tests/parallel_test - run_scan_container.sh -d ${WKDIR} -b ${BRANCH_NAME}_${BUILD_ID} -f ${WK}/../log/${BRANCH_NAME}_${BUILD_ID}/docs_changed.txt ''' + extra_param + ''' + ./run_scan_container.sh -d ${WKDIR} -b ${BRANCH_NAME}_${BUILD_ID} -f ${WK}/../log/${BRANCH_NAME}_${BUILD_ID}/docs_changed.txt ''' + extra_param + ''' ''' sh ''' cd ${WKC}/tests/parallel_test diff --git a/tests/ci/filter_for_return_values b/tests/ci/filter_for_return_values index 734619a8af..050ceda29b 100644 --- a/tests/ci/filter_for_return_values +++ b/tests/ci/filter_for_return_values @@ -4,7 +4,6 @@ match callExpr( doStmt(hasCondition(expr().bind("cond")))) ), unless(hasType(voidType())), - unless(callee(functionDecl(hasName("memcpy")))), unless(callee(functionDecl(hasName("strcpy")))), unless(callee(functionDecl(hasName("strcat")))), unless(callee(functionDecl(hasName("strncpy")))),