btrfs-progs/tests/scan-results.sh
David Sterba 8c9bd8e6a8 btrfs-progs: tests: add matching line for extent leaks to scan-results
The extent leaks are detected in debug builds but tests/scan-build.sh
does not look for them, so add the match expression.

Signed-off-by: David Sterba <dsterba@suse.com>
2022-09-12 15:31:13 +02:00

22 lines
693 B
Bash
Executable file

#!/bin/sh
# look for some error messages in all test logs
for i in *.txt; do
echo "Scanning $i"
last=
while read line; do
case "$line" in
===\ Entering*) last="$line" ;;
*Assertion*failed*) echo "ASSERTION FAILED: $last" ;;
*runtime\ error*) echo "RUNTIME ERROR (sanitizer): $last" ;;
*AddressSanitizer*heap-use-after-free*) echo "RUNTIME ERROR (use after free): $last" ;;
*LeakSanitizer:*leak*) echo "SANITIZER REPORT: memory leak: $last" ;;
*Warning:\ assertion*failed*) echo "ASSERTION WARNING: $last" ;;
*command\ not\ found*) echo "COMMAND NOT FOUND: $last" ;;
*extent\ buffer\ leak*) echo "EXTENT BUFFER LEAK: $last" ;;
*) : ;;
esac
done < "$i"
done