Remove test/cfg/unmatchedSuppressionTest.c: This testing belongs better in test/cli.
This commit is contained in:
parent
c3a27eb8c1
commit
530a1a1c68
|
@ -21,16 +21,6 @@ CXX_OPT='-fsyntax-only -std=c++0x -Wno-format -Wno-format-security'
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CC_OPT='-Wno-format -Wno-nonnull -Wno-implicit-function-declaration -Wno-deprecated-declarations -Wno-format-security -Wno-nonnull -fsyntax-only'
|
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
|
# posix.c
|
||||||
${CC} ${CC_OPT} ${DIR}posix.c
|
${CC} ${CC_OPT} ${DIR}posix.c
|
||||||
${CPPCHECK} ${CPPCHECK_OPT} --library=posix ${DIR}posix.c
|
${CPPCHECK} ${CPPCHECK_OPT} --library=posix ${DIR}posix.c
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
//cppcheck-suppress bufferAccessOutOfBounds
|
|
||||||
x;
|
|
Loading…
Reference in New Issue