mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-05 00:49:31 +00:00
qualify-clang.sh: fix one failing test, now clang-11 is finding only 2 warnings instead of 3 (as it was clang-10).
Any number > 1 is considered ok as result, so only grepping "warnings" works now.
This commit is contained in:
parent
b0dd1d7059
commit
9f56f26263
4
debian/qualify-clang.sh
vendored
4
debian/qualify-clang.sh
vendored
@ -410,8 +410,8 @@ else
|
||||
fi
|
||||
|
||||
clang-$VERSION -cc1 -analyze -analyzer-constraints=range -analyzer-checker=core,debug.ExprInspection foo.c &> foo.log
|
||||
if ! grep -q "3 warnings generated." foo.log; then
|
||||
echo "Should find 3 warnings"
|
||||
if ! grep -q "warnings generated." foo.log; then
|
||||
echo "Should find at least 2 warnings"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user