From 530a1a1c6810fdb636beda3f67d2064cd366cf2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 17 Aug 2019 17:18:44 +0200 Subject: [PATCH] Remove test/cfg/unmatchedSuppressionTest.c: This testing belongs better in test/cli. --- test/cfg/runtests.sh | 10 ---------- test/cfg/unmatchedSuppressionTest.c | 4 ---- 2 files changed, 14 deletions(-) delete mode 100644 test/cfg/unmatchedSuppressionTest.c diff --git a/test/cfg/runtests.sh b/test/cfg/runtests.sh index df074b232..222e90fdf 100755 --- a/test/cfg/runtests.sh +++ b/test/cfg/runtests.sh @@ -21,16 +21,6 @@ CXX_OPT='-fsyntax-only -std=c++0x -Wno-format -Wno-format-security' CC=gcc CC_OPT='-Wno-format -Wno-nonnull -Wno-implicit-function-declaration -Wno-deprecated-declarations -Wno-format-security -Wno-nonnull -fsyntax-only' -# Verify that unmatchedSuppression messages result in an error code -set +e -${CPPCHECK} ${CPPCHECK_OPT} ${DIR}unmatchedSuppressionTest.c -CPPCHECK_RETURNCODE=$? -set -e -if [ ${CPPCHECK_RETURNCODE} -eq 0 ]; then - echo "Error: unmatchedSuppression must result in an exit code signaling an error!" - exit 1 -fi - # posix.c ${CC} ${CC_OPT} ${DIR}posix.c ${CPPCHECK} ${CPPCHECK_OPT} --library=posix ${DIR}posix.c diff --git a/test/cfg/unmatchedSuppressionTest.c b/test/cfg/unmatchedSuppressionTest.c deleted file mode 100644 index 4325954b8..000000000 --- a/test/cfg/unmatchedSuppressionTest.c +++ /dev/null @@ -1,4 +0,0 @@ -#include - -//cppcheck-suppress bufferAccessOutOfBounds -x;