From bd9700b84841b8578f0c01884fe5cacdfc065869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Fri, 5 Jan 2024 18:08:00 +0100 Subject: [PATCH] fixed cfg tests (#5843) --- test/CMakeLists.txt | 2 +- test/cfg/runtests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 497a40594..81fd6458c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -125,9 +125,9 @@ if (BUILD_TESTS) --error-exitcode=1 --disable=missingInclude --inline-suppr - --template="{file}:{line}:{severity}:{id}:{message}" --debug-warnings --suppress=valueFlowBailout + --suppress=purgedConfiguration --suppress=unmatchedSuppression ${CMAKE_CURRENT_SOURCE_DIR}/cfg/${CFG_TEST} ) diff --git a/test/cfg/runtests.sh b/test/cfg/runtests.sh index 310686eab..4a51f7c6d 100755 --- a/test/cfg/runtests.sh +++ b/test/cfg/runtests.sh @@ -27,7 +27,7 @@ CFG="$DIR"../../cfg/ # TODO: remove missingInclude disabling when it no longer is implied by --enable=information # Cppcheck options # need to suppress unmatchedSuppression in case valueFlowBailout is not reported -CPPCHECK_OPT='--check-library --platform=unix64 --enable=style,information --inconclusive --force --error-exitcode=-1 --disable=missingInclude --inline-suppr --template="{file}:{line}:{severity}:{id}:{message}" --debug-warnings --suppress=valueFlowBailout --suppress=unmatchedSuppression' +CPPCHECK_OPT='--check-library --platform=unix64 --enable=style,information --inconclusive --force --error-exitcode=-1 --disable=missingInclude --inline-suppr --template="{file}:{line}:{severity}:{id}:{message}" --debug-warnings --suppress=valueFlowBailout --suppress=purgedConfiguration --suppress=unmatchedSuppression' # Compiler settings CXX=g++