fix the grep in the test

This commit is contained in:
Sylvestre Ledru 2018-09-21 14:28:28 +02:00
parent d4dd63a25a
commit 53ce54faf2

View File

@ -51,7 +51,7 @@ scan-build-$VERSION gcc -c foo.c &> /dev/null
scan-build-$VERSION clang-$VERSION -c foo.c &> /dev/null
scan-build-$VERSION --exclude non-existing/ --exclude /tmp/ -v clang-$VERSION -c foo.c &> /dev/null
scan-build-$VERSION --exclude $(pwd) -v clang-$VERSION -c foo.c &> foo.log
if ! grep -q -E "scan-build: 0 bugs found."; then
if ! grep -q -E "scan-build: 0 bugs found." foo.log; then
echo "scan-build --exclude didn't ignore the defect"
exit 42
fi