runtests.sh: fixed check for cppunit (#3072)

This commit is contained in:
Oliver Stöneberg 2021-01-21 10:59:34 +01:00 committed by GitHub
parent 253b7810fb
commit 95d1b41a5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ set -e
if [ $PKGCONFIG_RETURNCODE -ne 0 ]; then
echo "pkg-config needed to retrieve cppunit configuration is not available, skipping syntax check."
else
if pkg-config cppunit; then
if ! pkg-config cppunit; then
echo "cppunit not found, skipping syntax check for cppunit"
else
echo "cppunit found, checking syntax with ${CXX} now."